Update Video.service.bash

This commit is contained in:
RandomNinjaAtk 2023-07-10 13:49:00 +00:00 committed by GitHub
parent 0532afe589
commit 2f377c313c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,20 +51,6 @@ if [ "$dlClientSource" = "tidal" ] || [ "$dlClientSource" = "both" ]; then
fi
verifyApiAccess () {
until false
do
lidarrTest=$(wget --timeout=0 -q -O - "$arrUrl/api/v1/system/status?apikey=${arrApiKey}" | jq -r .appName)
if [ "$lidarrTest" == "Lidarr" ]; then
lidarrVersion=$(wget --timeout=0 -q -O - "$arrUrl/api/v1/system/status?apikey=${arrApiKey}" | jq -r .version)
log "Lidarr Version: $lidarrVersion"
break
else
log "Lidarr is not ready, sleeping until valid response..."
sleep 1
fi
done
}
# auto-clean up log file to reduce space usage
if [ -f "/config/logs/Video.txt" ]; then