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
|
||||
scriptVersion="1.1"
|
||||
scriptVersion="1.2"
|
||||
ytdlpExtraOpts="--user-agent facebookexternalhit/1.1"
|
||||
|
||||
#### Settings
|
||||
videoFormat="bv[width>=1280]+ba"
|
||||
#### Import Settings
|
||||
source /config/extended.conf
|
||||
|
||||
getArrAppInfo () {
|
||||
# Get Arr App information
|
||||
|
@ -174,14 +174,20 @@ YoutubeSeriesDownloaderProcess () {
|
|||
done
|
||||
}
|
||||
|
||||
echo "Starting Script...."
|
||||
if [ $enableYoutubeSeriesDownloader == true ]; then
|
||||
log "Starting Script...."
|
||||
for (( ; ; )); do
|
||||
let i++
|
||||
getArrAppInfo
|
||||
verifyApiAccess
|
||||
YoutubeSeriesDownloaderProcess
|
||||
echo "Script sleeping for 2 hours..."
|
||||
log "Script sleeping for 2 hours..."
|
||||
sleep 2h
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue