Move arr stack scripts from Media/ to Arrs_Stack/

Media/ now holds only media-level scripts (cleaner, permissions, play_state_sync).
All arr management scripts (cleanup, discovery, sync, webhooks, release fixer) live in Arrs_Stack/.
This commit is contained in:
Gmer4Lfe
2026-06-27 18:39:33 -04:00
parent 99b2d1879b
commit b4bc9267e9
26 changed files with 88 additions and 88 deletions
+39 -39
View File
@@ -903,9 +903,9 @@
# NUCLEAR MODE (use with full understanding): --i-know-what-im-doing --skip-strike-list
# Both flags: age check bypassed + size gate bypassed. Deletes everything not tracked.
#
# bash /boot/config/plugins/varaverk/Media/lidarr_cleanup.sh --dry-run --log
# bash /boot/config/plugins/varaverk/Media/lidarr_cleanup.sh --status
# bash /boot/config/plugins/varaverk/Media/lidarr_cleanup.sh
# bash /boot/config/plugins/varaverk/Arrs_Stack/lidarr_cleanup.sh --dry-run --log
# bash /boot/config/plugins/varaverk/Arrs_Stack/lidarr_cleanup.sh --status
# bash /boot/config/plugins/varaverk/Arrs_Stack/lidarr_cleanup.sh
# sonarr_cleanup.sh — delete orphaned TV files not tracked by Sonarr
# HOST-AWARE: HOST1 manages Tv_Shows (via HOST1_SONARR_TV_ROOT).
@@ -915,9 +915,9 @@
# Protected: *.jpg *.png (episode/show artwork), *.nfo, *.srt *.sub *.ass *.ssa (Bazarr subtitles)
# After deletion: notify_emby_scan() clears ghost entries from Emby library immediately.
#
# bash /boot/config/plugins/varaverk/Media/sonarr_cleanup.sh --dry-run --log
# bash /boot/config/plugins/varaverk/Media/sonarr_cleanup.sh --status
# bash /boot/config/plugins/varaverk/Media/sonarr_cleanup.sh
# bash /boot/config/plugins/varaverk/Arrs_Stack/sonarr_cleanup.sh --dry-run --log
# bash /boot/config/plugins/varaverk/Arrs_Stack/sonarr_cleanup.sh --status
# bash /boot/config/plugins/varaverk/Arrs_Stack/sonarr_cleanup.sh
# radarr_cleanup.sh — delete orphaned movie files not tracked by Radarr
# HOST-AWARE: HOST1 manages Movies (via HOST1_RADARR_MOVIES_ROOT).
@@ -926,9 +926,9 @@
# Protected: *.jpg *.png (movie artwork, fanart, thumbnails), *.nfo, subtitles
# After deletion: notify_emby_scan() clears ghost entries from Emby library immediately.
#
# bash /boot/config/plugins/varaverk/Media/radarr_cleanup.sh --dry-run --log
# bash /boot/config/plugins/varaverk/Media/radarr_cleanup.sh --status
# bash /boot/config/plugins/varaverk/Media/radarr_cleanup.sh
# bash /boot/config/plugins/varaverk/Arrs_Stack/radarr_cleanup.sh --dry-run --log
# bash /boot/config/plugins/varaverk/Arrs_Stack/radarr_cleanup.sh --status
# bash /boot/config/plugins/varaverk/Arrs_Stack/radarr_cleanup.sh
# arr_sync.sh — bidirectional arr library sync across all nodes in the ecosystem
# Called by intermediate_sync_maintenance.sh every 4 hours. Can be run standalone.
@@ -944,48 +944,48 @@
# --blocklist-add does three things: tombstones, deletes local, deletes all remotes via SSH.
# Files become orphans on all nodes — arr_cleanup.sh removes them on next run.
#
# bash /boot/config/plugins/varaverk/Media/arr_sync.sh --dry-run
# bash /boot/config/plugins/varaverk/Media/arr_sync.sh --status
# bash /boot/config/plugins/varaverk/Media/arr_sync.sh
# bash /boot/config/plugins/varaverk/Media/arr_sync.sh --blocklist-add radarr <tmdbId> "reason"
# bash /boot/config/plugins/varaverk/Media/arr_sync.sh --blocklist-add sonarr <tvdbId> "reason"
# bash /boot/config/plugins/varaverk/Media/arr_sync.sh --blocklist-add lidarr <mbid> "reason"
# bash /boot/config/plugins/varaverk/Media/arr_sync.sh --blocklist-remove radarr <id>
# bash /boot/config/plugins/varaverk/Media/arr_sync.sh --blocklist-list
# bash /boot/config/plugins/varaverk/Arrs_Stack/arr_sync.sh --dry-run
# bash /boot/config/plugins/varaverk/Arrs_Stack/arr_sync.sh --status
# bash /boot/config/plugins/varaverk/Arrs_Stack/arr_sync.sh
# bash /boot/config/plugins/varaverk/Arrs_Stack/arr_sync.sh --blocklist-add radarr <tmdbId> "reason"
# bash /boot/config/plugins/varaverk/Arrs_Stack/arr_sync.sh --blocklist-add sonarr <tvdbId> "reason"
# bash /boot/config/plugins/varaverk/Arrs_Stack/arr_sync.sh --blocklist-add lidarr <mbid> "reason"
# bash /boot/config/plugins/varaverk/Arrs_Stack/arr_sync.sh --blocklist-remove radarr <id>
# bash /boot/config/plugins/varaverk/Arrs_Stack/arr_sync.sh --blocklist-list
# arrs_failed_stalled_recovery.sh — blocklist + re-search failed/stalled arr imports
# Called every 4 hours by intermediate_sync_maintenance.sh via INTERMEDIATE_MAINTENANCE_SCRIPTS.
# Finds importFailed / importPending / error / stalled items across all configured arrs.
# Age gate: items newer than ARR_IMPORT_RECOVERY_AGE (6hr) are skipped — arr may still self-retry.
# bash /boot/config/plugins/varaverk/Media/arrs_failed_stalled_recovery.sh --dry-run
# bash /boot/config/plugins/varaverk/Media/arrs_failed_stalled_recovery.sh --status
# bash /boot/config/plugins/varaverk/Arrs_Stack/arrs_failed_stalled_recovery.sh --dry-run
# bash /boot/config/plugins/varaverk/Arrs_Stack/arrs_failed_stalled_recovery.sh --status
# playback_aware_lidarr_discovery.sh — behavior-driven music discovery (runs via WEEKLY_MAINTENANCE_SCRIPTS)
# Called by weekly_sync_maintenance.sh on Sunday. Can be run standalone.
# Stage 1: score artists you actually played this week in Emby (play count + recency + user diversity).
# Stage 2: run Last.fm artist.getSimilar on top seeds, score recommendations, add top results to Lidarr.
# Goal: 05 meaningful adds per run. Not bulk import — only artists likely to match your taste.
# bash /boot/config/plugins/varaverk/Media/playback_aware_lidarr_discovery.sh --dry-run
# bash /boot/config/plugins/varaverk/Media/playback_aware_lidarr_discovery.sh --status
# bash /boot/config/plugins/varaverk/Media/playback_aware_lidarr_discovery.sh
# bash /boot/config/plugins/varaverk/Arrs_Stack/playback_aware_lidarr_discovery.sh --dry-run
# bash /boot/config/plugins/varaverk/Arrs_Stack/playback_aware_lidarr_discovery.sh --status
# bash /boot/config/plugins/varaverk/Arrs_Stack/playback_aware_lidarr_discovery.sh
# playback_aware_radarr_discovery.sh — behavior-driven movie discovery (runs via WEEKLY_MAINTENANCE_SCRIPTS)
# Called by weekly_sync_maintenance.sh on Sunday. Can be run standalone.
# Stage 1: score recently watched movies in Emby, weighted by recency and TMDB rating.
# Stage 2: run TMDB recommendations on top seeds, score candidates, add top results to Radarr.
# Goal: 05 meaningful adds per run.
# bash /boot/config/plugins/varaverk/Media/playback_aware_radarr_discovery.sh --dry-run
# bash /boot/config/plugins/varaverk/Media/playback_aware_radarr_discovery.sh --status
# bash /boot/config/plugins/varaverk/Media/playback_aware_radarr_discovery.sh
# bash /boot/config/plugins/varaverk/Arrs_Stack/playback_aware_radarr_discovery.sh --dry-run
# bash /boot/config/plugins/varaverk/Arrs_Stack/playback_aware_radarr_discovery.sh --status
# bash /boot/config/plugins/varaverk/Arrs_Stack/playback_aware_radarr_discovery.sh
# playback_aware_sonarr_discovery.sh — behavior-driven TV discovery (runs via WEEKLY_MAINTENANCE_SCRIPTS)
# Called by weekly_sync_maintenance.sh on Sunday. Can be run standalone.
# Stage 1: score recently watched series in Emby (user diversity + recency + per-user-capped episodes).
# Stage 2: run TMDB TV recommendations on top seeds, score candidates, add top results to Sonarr.
# Goal: 03 meaningful adds per run.
# bash /boot/config/plugins/varaverk/Media/playback_aware_sonarr_discovery.sh --dry-run
# bash /boot/config/plugins/varaverk/Media/playback_aware_sonarr_discovery.sh --status
# bash /boot/config/plugins/varaverk/Media/playback_aware_sonarr_discovery.sh
# bash /boot/config/plugins/varaverk/Arrs_Stack/playback_aware_sonarr_discovery.sh --dry-run
# bash /boot/config/plugins/varaverk/Arrs_Stack/playback_aware_sonarr_discovery.sh --status
# bash /boot/config/plugins/varaverk/Arrs_Stack/playback_aware_sonarr_discovery.sh
# lidarr_missing_art.sh — fetch missing album and artist artwork for the Lidarr music library
# Called by intermediate_sync_maintenance.sh via INTERMEDIATE_MAINTENANCE_SCRIPTS.
@@ -998,9 +998,9 @@
# Artist: folder.jpg fanart.jpg logo.png banner.jpg
# Sources: fanart.tv → iTunes (album) / Deezer / Last.fm (artist) fallbacks
#
# bash /boot/config/plugins/varaverk/Media/lidarr_missing_art.sh --dry-run --log
# bash /boot/config/plugins/varaverk/Media/lidarr_missing_art.sh --status
# bash /boot/config/plugins/varaverk/Media/lidarr_missing_art.sh
# bash /boot/config/plugins/varaverk/Arrs_Stack/lidarr_missing_art.sh --dry-run --log
# bash /boot/config/plugins/varaverk/Arrs_Stack/lidarr_missing_art.sh --status
# bash /boot/config/plugins/varaverk/Arrs_Stack/lidarr_missing_art.sh
# radarr_tmdb_removed.sh — remove movies dropped from TMDb (status="deleted")
# These generate Radarr system health errors and can never be monitored or downloaded.
@@ -1009,20 +1009,20 @@
# Import exclusion added by default — prevents Radarr re-adding the same dropped movie.
# HOST1 only — exits cleanly on HOST2.
#
# bash /boot/config/plugins/varaverk/Media/radarr_tmdb_removed.sh --dry-run
# bash /boot/config/plugins/varaverk/Media/radarr_tmdb_removed.sh --status
# bash /boot/config/plugins/varaverk/Media/radarr_tmdb_removed.sh
# bash /boot/config/plugins/varaverk/Media/radarr_tmdb_removed.sh --delete-files
# bash /boot/config/plugins/varaverk/Arrs_Stack/radarr_tmdb_removed.sh --dry-run
# bash /boot/config/plugins/varaverk/Arrs_Stack/radarr_tmdb_removed.sh --status
# bash /boot/config/plugins/varaverk/Arrs_Stack/radarr_tmdb_removed.sh
# bash /boot/config/plugins/varaverk/Arrs_Stack/radarr_tmdb_removed.sh --delete-files
# sonarr_tvdb_removed.sh — remove series dropped from TVDB (status="deleted")
# Same pattern as radarr_tmdb_removed: Sonarr health errors, can't be monitored.
# Files NOT deleted by default — use --delete-files to also remove from disk.
# Import exclusion added by default. HOST1 only.
#
# bash /boot/config/plugins/varaverk/Media/sonarr_tvdb_removed.sh --dry-run
# bash /boot/config/plugins/varaverk/Media/sonarr_tvdb_removed.sh --status
# bash /boot/config/plugins/varaverk/Media/sonarr_tvdb_removed.sh
# bash /boot/config/plugins/varaverk/Media/sonarr_tvdb_removed.sh --delete-files
# bash /boot/config/plugins/varaverk/Arrs_Stack/sonarr_tvdb_removed.sh --dry-run
# bash /boot/config/plugins/varaverk/Arrs_Stack/sonarr_tvdb_removed.sh --status
# bash /boot/config/plugins/varaverk/Arrs_Stack/sonarr_tvdb_removed.sh
# bash /boot/config/plugins/varaverk/Arrs_Stack/sonarr_tvdb_removed.sh --delete-files
# ──────────────────────────────────────────────────────────────────────────────────────────────