3.6 - Use new disableImvd config setting

Disables script if disableImvdb setting is true...
This commit is contained in:
RandomNinjaAtk 2024-02-05 14:24:02 +00:00 committed by GitHub
parent 4c2c0b3dd8
commit 6cbec2ad33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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