Update Video.service.bash
This commit is contained in:
parent
0532afe589
commit
2f377c313c
1 changed files with 0 additions and 14 deletions
|
@ -51,20 +51,6 @@ if [ "$dlClientSource" = "tidal" ] || [ "$dlClientSource" = "both" ]; then
|
||||||
fi
|
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
|
# auto-clean up log file to reduce space usage
|
||||||
if [ -f "/config/logs/Video.txt" ]; then
|
if [ -f "/config/logs/Video.txt" ]; then
|
||||||
|
|
Loading…
Reference in a new issue