Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Lidarr-MusicAutomator.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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...."
Expand Down
5 changes: 3 additions & 2 deletions Queue-Cleaner.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down