From 3cd780045eea273dd2add6282bceb7d9ebe78f93 Mon Sep 17 00:00:00 2001 From: Christopher Berger Date: Thu, 28 May 2026 13:38:13 +0000 Subject: [PATCH] Upload files to "/" --- README.md | 1 + refresh-radarr.sh | 32 ++++++++++++++++++++++++++++++++ refresh-radarr4k.sh | 32 ++++++++++++++++++++++++++++++++ refresh-sonarr.sh | 32 ++++++++++++++++++++++++++++++++ refresh-sonarr4k.sh | 32 ++++++++++++++++++++++++++++++++ 5 files changed, 129 insertions(+) create mode 100644 README.md create mode 100644 refresh-radarr.sh create mode 100644 refresh-radarr4k.sh create mode 100644 refresh-sonarr.sh create mode 100644 refresh-sonarr4k.sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..de13a21 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Arrs stack placeholder \ No newline at end of file diff --git a/refresh-radarr.sh b/refresh-radarr.sh new file mode 100644 index 0000000..1584c0f --- /dev/null +++ b/refresh-radarr.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# --- CONFIGURATION --- +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!" diff --git a/refresh-radarr4k.sh b/refresh-radarr4k.sh new file mode 100644 index 0000000..b147046 --- /dev/null +++ b/refresh-radarr4k.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# --- CONFIGURATION --- +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!" diff --git a/refresh-sonarr.sh b/refresh-sonarr.sh new file mode 100644 index 0000000..43bb3e5 --- /dev/null +++ b/refresh-sonarr.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# --- CHANGE THESE VALUES --- +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!" diff --git a/refresh-sonarr4k.sh b/refresh-sonarr4k.sh new file mode 100644 index 0000000..65da992 --- /dev/null +++ b/refresh-sonarr4k.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# --- CHANGE THESE VALUES --- +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!" \ No newline at end of file