3.6 - Use new disableImvd config setting
Disables script if disableImvdb setting is true...
This commit is contained in:
parent
4c2c0b3dd8
commit
6cbec2ad33
1 changed files with 12 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
scriptVersion="3.5"
|
scriptVersion="3.6"
|
||||||
scriptName="Video"
|
scriptName="Video"
|
||||||
|
|
||||||
### Import Settings
|
### Import Settings
|
||||||
|
@ -12,12 +12,22 @@ verifyConfig () {
|
||||||
videoContainer="mkv"
|
videoContainer="mkv"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$disableImvd" ]; then
|
||||||
|
disableImvd="fasle"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$enableVideo" != "true" ]; then
|
if [ "$enableVideo" != "true" ]; then
|
||||||
log "Script is not enabled, enable by setting enableVideo to \"true\" by modifying the \"/config/extended.conf\" config file..."
|
log "Script is not enabled, enable by setting enableVideo to \"true\" by modifying the \"/config/extended.conf\" config file..."
|
||||||
log "Sleeping (infinity)"
|
log "Sleeping (infinity)"
|
||||||
sleep infinity
|
sleep infinity
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$disableImvd" = "true" ]; then
|
||||||
|
log "Script is not enabled, enable by setting disableImvd to \"false\" by modifying the \"/config/extended.conf\" config file..."
|
||||||
|
log "Sleeping (infinity)"
|
||||||
|
sleep infinity
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$downloadPath" ]; then
|
if [ -z "$downloadPath" ]; then
|
||||||
downloadPath="/config/extended/downloads"
|
downloadPath="/config/extended/downloads"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue