fixed protected lists in all arrs

This commit is contained in:
2026-04-26 01:41:00 -04:00
parent e44b01364f
commit fb42461e2f
+43 -13
View File
@@ -921,7 +921,17 @@ declare -A HOST2_LIDARR_PATH_MAP=(
LIDARR_ORPHAN_AGE=7 # days — files must be older than this before eligible for deletion LIDARR_ORPHAN_AGE=7 # days — files must be older than this before eligible for deletion
# protects files that may still be mid-import or recently downloaded # protects files that may still be mid-import or recently downloaded
LIDARR_EXTENSIONS=("flac" "mp3" "m4a" "wav" "aac" "ogg" "opus" "wma") LIDARR_EXTENSIONS=("flac" "mp3" "m4a" "wav" "aac" "ogg" "opus" "wma")
LIDARR_PROTECTED_PATTERNS=("*.jpg" "*.jpeg" "*.png" "*.nfo" "*.lrc") LIDARR_PROTECTED_PATTERNS=(
# Metadata
"*.nfo" "*.tbn"
# Images — album art, artist images, Emby artwork
"*.jpg" "*.jpeg" "*.png" "*.webp"
"poster.*" "fanart.*" "backdrop.*" "clearlogo.*"
"banner.*" "thumb.*" "landscape.*"
"folder.*" "cover.*" "album.*" "artist.*" "disc.*"
# Lyrics
"*.lrc"
)
# NEVER deleted — cover art, metadata, lyrics # NEVER deleted — cover art, metadata, lyrics
# Lidarr generates these but doesn't include them in trackFile API # Lidarr generates these but doesn't include them in trackFile API
# Without this protection cleanup would delete all your artwork # Without this protection cleanup would delete all your artwork
@@ -958,12 +968,22 @@ declare -A HOST2_SONARR_PATH_MAP=(
SONARR_ORPHAN_AGE=7 # days — files must be older than this before eligible for deletion SONARR_ORPHAN_AGE=7 # days — files must be older than this before eligible for deletion
SONARR_MAX_DELETE_GB=1 # require --i-know-what-im-doing if deletion exceeds this SONARR_MAX_DELETE_GB=1 # require --i-know-what-im-doing if deletion exceeds this
SONARR_EXTENSIONS=("mkv" "mp4" "avi" "m4v" "ts" "wmv" "mov") SONARR_EXTENSIONS=("mkv" "mp4" "avi" "m4v" "ts" "wmv" "mov")
SONARR_PROTECTED_PATTERNS=("*.jpg" "*.jpeg" "*.png" "*.nfo" "*.srt" "*.sub" "*.ass" "*.ssa" \ SONARR_PROTECTED_PATTERNS=(
"*-featurette.*" "*-behindthescenes.*" "*-interview.*" \ # Subtitles
"*-scene.*" "*-short.*" "*-trailer.*" "*-deleted.*") "*.srt" "*.sub" "*.ass" "*.ssa" "*.idx" "*.vtt"
# NEVER deleted — cover art, metadata, subtitles, extras # Metadata
# Sonarr generates these but doesn't include them in episodefile API "*.nfo" "*.tbn"
# Extra patterns cover Kodi-style naming for show extras # Images — cover art, posters, fanart, Emby artwork
"*.jpg" "*.jpeg" "*.png" "*.webp"
"poster.*" "fanart.*" "backdrop.*" "clearlogo.*"
"banner.*" "thumb.*" "landscape.*"
# Kodi/Emby extras — not tracked by Sonarr API
"*-trailer.*" "*-featurette.*" "*-behindthescenes.*"
"*-interview.*" "*-scene.*" "*-short.*" "*-deleted.*"
"*-clip.*" "*-other.*"
# Theme songs — stored in show folder, not tracked
"theme.mp3" "theme.flac" "theme.wav" "theme.m4a"
)
# ── Radarr ──────────────────────────────────────────────────────────────────────────────────── # ── Radarr ────────────────────────────────────────────────────────────────────────────────────
HOST1_RADARR_URL="http://192.168.50.2:7878" HOST1_RADARR_URL="http://192.168.50.2:7878"
@@ -992,12 +1012,22 @@ declare -A HOST2_RADARR_PATH_MAP=(
RADARR_ORPHAN_AGE=7 # days — files must be older than this before eligible for deletion RADARR_ORPHAN_AGE=7 # days — files must be older than this before eligible for deletion
RADARR_MAX_DELETE_GB=1 # require --i-know-what-im-doing if deletion exceeds this RADARR_MAX_DELETE_GB=1 # require --i-know-what-im-doing if deletion exceeds this
RADARR_EXTENSIONS=("mkv" "mp4" "avi" "m4v" "wmv" "mov") RADARR_EXTENSIONS=("mkv" "mp4" "avi" "m4v" "wmv" "mov")
RADARR_PROTECTED_PATTERNS=("*.jpg" "*.jpeg" "*.png" "*.nfo" "*.srt" "*.sub" "*.ass" "*.ssa" \ RADARR_PROTECTED_PATTERNS=(
"*-trailer.*" "*-featurette.*" "*-behindthescenes.*" \ # Subtitles
"*-interview.*" "*-scene.*" "*-short.*" "*-deleted.*") "*.srt" "*.sub" "*.ass" "*.ssa" "*.idx" "*.vtt"
# NEVER deleted — cover art, metadata, subtitles, trailers, extras # Metadata
# Radarr generates these but doesn't include them in moviefile API "*.nfo" "*.tbn"
# Kodi-style naming covers all extra types Radarr downloads # Images — cover art, posters, fanart, Emby artwork
"*.jpg" "*.jpeg" "*.png" "*.webp"
"poster.*" "fanart.*" "backdrop.*" "clearlogo.*"
"banner.*" "thumb.*" "landscape.*"
# Kodi/Emby extras — not tracked by Radarr API
"*-trailer.*" "*-featurette.*" "*-behindthescenes.*"
"*-interview.*" "*-scene.*" "*-short.*" "*-deleted.*"
"*-clip.*" "*-other.*"
# Theme songs — stored in movie folder, not tracked
"theme.mp3" "theme.flac" "theme.wav" "theme.m4a"
)
# ━━━ Arr Failed/Stalled Recovery ━━━ # ━━━ Arr Failed/Stalled Recovery ━━━
# Auto blocklist + re-search failed imports and stalled downloads. # Auto blocklist + re-search failed imports and stalled downloads.