1.0.6 - bug fix
This commit is contained in:
parent
24be27b6b8
commit
34a1016ecf
1 changed files with 4 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
scriptVersion="1.0.5"
|
scriptVersion="1.0.6"
|
||||||
|
|
||||||
######## Settings
|
######## Settings
|
||||||
scriptInterval="15m"
|
scriptInterval="15m"
|
||||||
|
@ -60,8 +60,7 @@ QueueCleanerProcess () {
|
||||||
arrQueueIdsCount=$(( $arrQueueIdsCompletedCount + $arrQueueIdsFailedCount ))
|
arrQueueIdsCount=$(( $arrQueueIdsCompletedCount + $arrQueueIdsFailedCount ))
|
||||||
|
|
||||||
if [ $arrQueueIdsCount -eq 0 ]; then
|
if [ $arrQueueIdsCount -eq 0 ]; then
|
||||||
log "No items in queue to clean up (sleeping $scriptInterval)..."
|
log "No items in queue to clean up"
|
||||||
sleep $scriptInterval
|
|
||||||
else
|
else
|
||||||
for queueId in $(echo $arrQueuedIds); do
|
for queueId in $(echo $arrQueuedIds); do
|
||||||
arrQueueItemData="$(echo "$arrQueueData" | jq -r "select(.id==$queueId)")"
|
arrQueueItemData="$(echo "$arrQueueData" | jq -r "select(.id==$queueId)")"
|
||||||
|
@ -113,6 +112,8 @@ if [ "$arrName" == "Sonarr" ] || [ "$arrName" == "Radarr" ] || [ "$arrName" == "
|
||||||
for (( ; ; )); do
|
for (( ; ; )); do
|
||||||
let i++
|
let i++
|
||||||
QueueCleanerProcess
|
QueueCleanerProcess
|
||||||
|
log "Sleeping $scriptInterval..."
|
||||||
|
sleep $scriptInterval
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
log "ERROR :: Arr app not detected, exiting..."
|
log "ERROR :: Arr app not detected, exiting..."
|
||||||
|
|
Loading…
Reference in a new issue