added version check to arrs. checks version that checks its api version
This commit is contained in:
@@ -900,6 +900,15 @@ MEDIA_FILE_PATTERNS=(
|
|||||||
# Radarr v5 → /api/v3/movie (get IDs) → /api/v3/moviefile?movieId=X per movie
|
# Radarr v5 → /api/v3/movie (get IDs) → /api/v3/moviefile?movieId=X per movie
|
||||||
# Lidarr v3 → /api/v1/artist (get IDs) → /api/v1/trackFile?artistId=X per artist
|
# Lidarr v3 → /api/v1/artist (get IDs) → /api/v1/trackFile?artistId=X per artist
|
||||||
# All require per-ID loops — bulk endpoints removed in newer versions
|
# All require per-ID loops — bulk endpoints removed in newer versions
|
||||||
|
#
|
||||||
|
# Version checking — scripts verify the arr major version matches before running
|
||||||
|
# If the arr updates and breaks the API the script exits safely before touching files
|
||||||
|
# Update the MAJOR version here when the script is updated to support a new version
|
||||||
|
# MINOR = 0 means any minor version within that major is accepted
|
||||||
|
|
||||||
|
SONARR_VERSION_MAJOR=4 # tested major version — script exits if major differs
|
||||||
|
RADARR_VERSION_MAJOR=6 # tested major version — script exits if major differs
|
||||||
|
LIDARR_VERSION_MAJOR=3 # tested major version — script exits if major differs
|
||||||
|
|
||||||
# ── Lidarr ────────────────────────────────────────────────────────────────────────────────────
|
# ── Lidarr ────────────────────────────────────────────────────────────────────────────────────
|
||||||
HOST1_LIDARR_URL="http://192.168.50.2:8686"
|
HOST1_LIDARR_URL="http://192.168.50.2:8686"
|
||||||
|
|||||||
Reference in New Issue
Block a user