v1.6 - Set fallback downloadPath and exit if videoPath is not configured
#7
This commit is contained in:
parent
01404ba986
commit
c36453f8b0
1 changed files with 13 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
scriptVersion="1.5"
|
scriptVersion="1.6"
|
||||||
scriptName="Video"
|
scriptName="Video"
|
||||||
|
|
||||||
#### Import Settings
|
#### Import Settings
|
||||||
|
@ -16,6 +16,18 @@ if [ "$enableVideo" != "true" ]; then
|
||||||
sleep infinity
|
sleep infinity
|
||||||
fi
|
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 () {
|
getArrAppInfo () {
|
||||||
# Get Arr App information
|
# Get Arr App information
|
||||||
if [ -z "$arrUrl" ] || [ -z "$arrApiKey" ]; then
|
if [ -z "$arrUrl" ] || [ -z "$arrApiKey" ]; then
|
||||||
|
|
Loading…
Reference in a new issue