v1.6 - Set fallback downloadPath and exit if videoPath is not configured

#7
This commit is contained in:
RandomNinjaAtk 2023-07-13 07:01:14 -04:00 committed by GitHub
parent 01404ba986
commit c36453f8b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash
scriptVersion="1.5"
scriptVersion="1.6"
scriptName="Video"
#### Import Settings
@ -16,6 +16,18 @@ if [ "$enableVideo" != "true" ]; then
sleep infinity
fi
if [ -z "$downloadPath" ]; then
downloadPath="/config/extended/downloads"
fi
if [ -z "$videoPath" ]; then
log "ERROR: videoPath is not configured via the \"/config/extended.conf\" config file..."
log "Updated your \"/config/extended.conf\" file with the latest options, see: https://github.com/RandomNinjaAtk/arr-scripts/blob/main/lidarr/extended.conf"
log "Sleeping (infinity)"
sleep infinity
fi
getArrAppInfo () {
# Get Arr App information
if [ -z "$arrUrl" ] || [ -z "$arrApiKey" ]; then