v1.3 - make configurable
This commit is contained in:
parent
f8e647d6db
commit
785465b521
1 changed files with 16 additions and 10 deletions
|
@ -1,15 +1,21 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
scriptVersion="1.2"
|
scriptVersion="1.3"
|
||||||
|
scriptName="Video"
|
||||||
|
|
||||||
# Settings
|
#### Import Settings
|
||||||
addFeaturedVideoArtists="true"
|
source /config/extended.conf
|
||||||
videoFormat="bv[width>=1920]+ba"
|
|
||||||
|
|
||||||
log () {
|
log () {
|
||||||
m_time=`date "+%F %T"`
|
m_time=`date "+%F %T"`
|
||||||
echo $m_time" :: Video :: $scriptVersion :: "$1
|
echo $m_time" :: $scriptName :: $scriptVersion :: "$1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ "$enableVideo" != "true" ]; then
|
||||||
|
log "Script is not enabled, enable by setting enableVideo to \"true\" by modifying the \"/config/extended.conf\" config file..."
|
||||||
|
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
|
||||||
|
@ -713,13 +719,13 @@ VideoProcess () {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "Starting Script...."
|
log "Starting Script...."
|
||||||
for (( ; ; )); do
|
for (( ; ; )); do
|
||||||
let i++
|
let i++
|
||||||
getArrAppInfo
|
getArrAppInfo
|
||||||
verifyApiAccess
|
verifyApiAccess
|
||||||
VideoProcess
|
VideoProcess
|
||||||
echo "Script sleeping for 15 minutes..."
|
log "Script sleeping for 15 minutes..."
|
||||||
sleep 15m
|
sleep 15m
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue