v1.2 - Make settings configurable
This commit is contained in:
parent
1232175fa4
commit
299f40845e
1 changed files with 18 additions and 12 deletions
|
@ -1,9 +1,9 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
scriptVersion="1.1"
|
scriptVersion="1.2"
|
||||||
ytdlpExtraOpts="--user-agent facebookexternalhit/1.1"
|
ytdlpExtraOpts="--user-agent facebookexternalhit/1.1"
|
||||||
|
|
||||||
#### Settings
|
#### Import Settings
|
||||||
videoFormat="bv[width>=1280]+ba"
|
source /config/extended.conf
|
||||||
|
|
||||||
getArrAppInfo () {
|
getArrAppInfo () {
|
||||||
# Get Arr App information
|
# Get Arr App information
|
||||||
|
@ -174,14 +174,20 @@ YoutubeSeriesDownloaderProcess () {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "Starting Script...."
|
if [ $enableYoutubeSeriesDownloader == true ]; then
|
||||||
|
log "Starting Script...."
|
||||||
for (( ; ; )); do
|
for (( ; ; )); do
|
||||||
let i++
|
let i++
|
||||||
getArrAppInfo
|
getArrAppInfo
|
||||||
verifyApiAccess
|
verifyApiAccess
|
||||||
YoutubeSeriesDownloaderProcess
|
YoutubeSeriesDownloaderProcess
|
||||||
echo "Script sleeping for 2 hours..."
|
log "Script sleeping for 2 hours..."
|
||||||
sleep 2h
|
sleep 2h
|
||||||
done
|
done
|
||||||
|
else
|
||||||
|
log "Script is not enabled, enable by setting enableYoutubeSeriesDownloader to \"true\" by modifying the \"/config/extended.conf\" config file..."
|
||||||
|
log "Sleeping (infinity)
|
||||||
|
sleep infinity
|
||||||
|
fi
|
||||||
|
|
||||||
exit
|
exit
|
||||||
|
|
Loading…
Reference in a new issue