From 1a9162ed806ca63e3b58de15418e826f01b255b8 Mon Sep 17 00:00:00 2001 From: FailedProxy Date: Sun, 26 Apr 2026 01:54:27 -0400 Subject: [PATCH] added version check to arrs. checks version that checks its api version --- Master.conf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Master.conf b/Master.conf index 45ffe6d..f463ec6 100644 --- a/Master.conf +++ b/Master.conf @@ -900,6 +900,15 @@ MEDIA_FILE_PATTERNS=( # 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 # 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 ──────────────────────────────────────────────────────────────────────────────────── HOST1_LIDARR_URL="http://192.168.50.2:8686"