From ff43761b4a950b8b2eb092d9b2d4e4c1f3b9202f Mon Sep 17 00:00:00 2001 From: James Ashcraft Date: Sun, 18 Jan 2026 11:30:58 -0600 Subject: [PATCH 1/2] Fix: Exclude TBA episodes from queue cleanup --- Queue-Cleaner.bash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Queue-Cleaner.bash b/Queue-Cleaner.bash index fad293e..8f63cdc 100644 --- a/Queue-Cleaner.bash +++ b/Queue-Cleaner.bash @@ -82,8 +82,9 @@ QueueCleanerProcess () { fi arrQueueIdCount=$(echo "$arrQueueData" | jq -r ".id" | wc -l) - arrQueueCompletedIds=$(echo "$arrQueueData" | jq -r 'select(.status=="completed") | select(.trackedDownloadStatus=="warning") | .id') - arrQueueIdsCompletedCount=$(echo "$arrQueueData" | jq -r 'select(.status=="completed") | select(.trackedDownloadStatus=="warning") | .id' | wc -l) + # Exclude TBA items from the "Completed/Warning" cleanup list + arrQueueCompletedIds=$(echo "$arrQueueData" | jq -r 'select(.status=="completed") | select(.trackedDownloadStatus=="warning") | select(.statusMessages | tostring | contains("TBA") | not) | .id') + arrQueueIdsCompletedCount=$(echo "$arrQueueCompletedIds" | wc -w) arrQueueFailedIds=$(echo "$arrQueueData" | jq -r 'select(.status=="failed") | .id') arrQueueIdsFailedCount=$(echo "$arrQueueData" | jq -r 'select(.status=="failed") | .id' | wc -l) arrQueueStalledIds=$(echo "$arrQueueData" | jq -r 'select(.status=="stalled") | .id') From cdbf68c352b270b1564dd0d0c60cc7d338e2b879 Mon Sep 17 00:00:00 2001 From: James Ashcraft Date: Sun, 25 Jan 2026 18:57:38 -0600 Subject: [PATCH 2/2] Fix: Check for py3-pip instead of python3 to prevent skipping dependency install --- Lidarr-MusicAutomator.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lidarr-MusicAutomator.bash b/Lidarr-MusicAutomator.bash index 61737ce..4a92c0e 100644 --- a/Lidarr-MusicAutomator.bash +++ b/Lidarr-MusicAutomator.bash @@ -25,7 +25,9 @@ verifyConfig () { } InstallDependencies () { - if apk --no-cache list | grep installed | grep python3 | read; then + # Fix: Check for py3-pip specifically. Checking only for python3 can lead to a state where + # python is installed but pip is missing, causing the subsequent 'python3 -m pip' commands to fail. + if apk --no-cache list | grep installed | grep py3-pip | read; then log "Dependencies already installed, skipping..." else log "Installing script dependencies...."