1.0.266 - Increase taskcount to prevent lidarr pausing script

Lidarr can run 3 tasks simultaneously, previously if lidarr was performing any single task, the script would pause and wait, now it will only pause if lidarr is reached its maximum active task limit.
pull/139/head
RandomNinjaAtk 2 years ago committed by GitHub
parent b2602a97a0
commit c1b57f42d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,5 @@
#!/usr/bin/env bash
scriptVersion="1.0.265"
scriptVersion="1.0.266"
if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then
lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
if [ "$lidarrUrlBase" == "null" ]; then
@ -1844,7 +1844,7 @@ LidarrTaskStatusCheck () {
until false
do
taskCount=$(curl -s "$lidarrUrl/api/v1/command?apikey=${lidarrApiKey}" | jq -r .[].status | grep -v completed | grep -v failed | wc -l)
if [ "$taskCount" -ge "1" ]; then
if [ "$taskCount" -ge "3" ]; then
if [ "$alerted" == "no" ]; then
alerted=yes
log "STATUS :: LIDARR BUSY :: Pausing/waiting for all active Lidarr tasks to end..."

Loading…
Cancel
Save