Upload files to "/"

This commit is contained in:
2026-05-28 13:38:13 +00:00
commit 3cd780045e
5 changed files with 129 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
# Arrs stack placeholder
+32
View File
@@ -0,0 +1,32 @@
#!/bin/bash
# --- CONFIGURATION ---
API_KEY="<your_api_key>"
RADARR_URL="http://localhost:7878" # Default Radarr port
# -------------------
# 1. Refresh all movies (scans disk & updates metadata)
echo "Refreshing all movies..."
curl -X POST "$RADARR_URL/api/v3/command" \
-H "X-Api-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "RefreshMovie"}' # Refreshes all movies if no movieIds supplied [citation:5]
# Small pause to let the system breathe
sleep 5
# 2. Search for all missing movies
echo "Searching for all missing movies..."
curl -X POST "$RADARR_URL/api/v3/command" \
-H "X-Api-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "MissingMoviesSearch"}' # Triggers search for all missing movies [citation:1][citation:8]
# 3. Force an RSS sync (grabs latest releases from indexers)
echo "Syncing RSS feeds..."
curl -X POST "$RADARR_URL/api/v3/command" \
-H "X-Api-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "RssSync"}' # Pulls latest releases from indexers [citation:6][citation:8]
echo "All commands sent successfully!"
+32
View File
@@ -0,0 +1,32 @@
#!/bin/bash
# --- CONFIGURATION ---
API_KEY="<your_api_key>"
RADARR_URL="http://localhost:7879" # Default Radarr port
# -------------------
# 1. Refresh all movies (scans disk & updates metadata)
echo "Refreshing all movies..."
curl -X POST "$RADARR_URL/api/v3/command" \
-H "X-Api-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "RefreshMovie"}' # Refreshes all movies if no movieIds supplied [citation:5]
# Small pause to let the system breathe
sleep 5
# 2. Search for all missing movies
echo "Searching for all missing movies..."
curl -X POST "$RADARR_URL/api/v3/command" \
-H "X-Api-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "MissingMoviesSearch"}' # Triggers search for all missing movies [citation:1][citation:8]
# 3. Force an RSS sync (grabs latest releases from indexers)
echo "Syncing RSS feeds..."
curl -X POST "$RADARR_URL/api/v3/command" \
-H "X-Api-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "RssSync"}' # Pulls latest releases from indexers [citation:6][citation:8]
echo "All commands sent successfully!"
+32
View File
@@ -0,0 +1,32 @@
#!/bin/bash
# --- CHANGE THESE VALUES ---
API_KEY="<your_api_key>"
SONARR_URL="http://localhost:8989"
# ---------------------------
# 1. Refresh all series
echo "Refreshing all series..."
curl -X POST "$SONARR_URL/api/v3/command" \
-H "X-Api-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "RefreshSeries"}'
# Small pause to let the system breathe
sleep 5
# 2. Trigger the global search for missing episodes
echo "Searching for all missing episodes..."
curl -X POST "$SONARR_URL/api/v3/command" \
-H "X-Api-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "MissingEpisodeSearch"}'
# 3. Force an RSS sync (Optional but recommended)
echo "Syncing RSS feeds..."
curl -X POST "$SONARR_URL/api/v3/command" \
-H "X-Api-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "RssSync"}'
echo "All commands sent successfully!"
+32
View File
@@ -0,0 +1,32 @@
#!/bin/bash
# --- CHANGE THESE VALUES ---
API_KEY="<your_api_key>"
SONARR_URL="http://localhost:8990"
# ---------------------------
# 1. Refresh all series
echo "Refreshing all series..."
curl -X POST "$SONARR_URL/api/v3/command" \
-H "X-Api-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "RefreshSeries"}'
# Small pause to let the system breathe
sleep 5
# 2. Trigger the global search for missing episodes
echo "Searching for all missing episodes..."
curl -X POST "$SONARR_URL/api/v3/command" \
-H "X-Api-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "MissingEpisodeSearch"}'
# 3. Force an RSS sync (Optional but recommended)
echo "Syncing RSS feeds..."
curl -X POST "$SONARR_URL/api/v3/command" \
-H "X-Api-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "RssSync"}'
echo "All commands sent successfully!"