Update TidalVideo.bash

This commit is contained in:
RandomNinjaAtk
2023-08-13 16:15:50 -04:00
committed by GitHub
parent 72d8c5f040
commit 938bd217ec

View File

@@ -155,6 +155,23 @@ AddFeaturedVideoArtists () {
}
LidarrTaskStatusCheck () {
alerted=no
until false
do
taskCount=$(curl -s "$arrUrl/api/v1/command?apikey=${arrApiKey}" | jq -r '.[] | select(.status=="started") | .name' | wc -l)
if [ "$taskCount" -ge "1" ]; then
if [ "$alerted" = "no" ]; then
alerted=yes
log "STATUS :: LIDARR BUSY :: Pausing/waiting for all active Lidarr tasks to end..."
fi
sleep 2
else
break
fi
done
}
TidalClientSetup
AddFeaturedVideoArtists