v1.2 - Make settings configurable

This commit is contained in:
RandomNinjaAtk 2023-07-12 11:03:28 +00:00 committed by GitHub
parent 1232175fa4
commit 299f40845e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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...."
for (( ; ; )); do
let i++
getArrAppInfo
verifyApiAccess
YoutubeSeriesDownloaderProcess
echo "Script sleeping for 2 hours..."
sleep 2h
done
if [ $enableYoutubeSeriesDownloader == true ]; then
log "Starting Script...."
for (( ; ; )); do
let i++
getArrAppInfo
verifyApiAccess
YoutubeSeriesDownloaderProcess
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