From ca6f16bafbc46ad9b8e605d5db99995e1bd6cfcc Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Fri, 17 Jul 2026 12:02:57 -0400 Subject: [PATCH] =?UTF-8?q?Exclude=20hasFile=3Dfalse=20entries=20from=20mo?= =?UTF-8?q?ve=20targets=20=E2=80=94=20nothing=20to=20physically=20move?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Arrs_Stack/radarr_classification_scan.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Arrs_Stack/radarr_classification_scan.sh b/Arrs_Stack/radarr_classification_scan.sh index f7855bd..6ed0f0e 100755 --- a/Arrs_Stack/radarr_classification_scan.sh +++ b/Arrs_Stack/radarr_classification_scan.sh @@ -201,7 +201,7 @@ RESULTS=$(echo "$MOVIES_RESPONSE" | jq \ map( { - title, id, studio, certification, rootFolderPath, genres, + title, id, studio, certification, rootFolderPath, genres, hasFile, is_anime: is_anime, is_kids: is_kids, is_junk: is_junk @@ -268,7 +268,12 @@ if [[ "$MOVE_MODE" == true ]]; then build_arr_path_map "RADARR" - MOVE_TARGETS=$(echo "$RESULTS" | jq -c '[.[] | select((.forward_anime_miss or .forward_kids_miss) and (.is_junk | not))]') + # hasFile==false entries have nothing to physically move (some monitored titles simply + # were never downloaded — confirmed live: "Biohazard 4: Incubate" had hasFile=false even + # in the cache from before this run started, not something this script broke). Moving + # Radarr's DB pointer for those is harmless but pointless — skip them here; they still + # show up correctly in the report above as a classification finding. + MOVE_TARGETS=$(echo "$RESULTS" | jq -c '[.[] | select((.forward_anime_miss or .forward_kids_miss) and (.is_junk | not) and .hasFile)]') MOVE_COUNT=$(echo "$MOVE_TARGETS" | jq 'length') if [[ "$MOVE_COUNT" -eq 0 ]]; then