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

View File

@@ -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
for (( ; ; )); do log "Starting Script...."
let i++ for (( ; ; )); do
getArrAppInfo let i++
verifyApiAccess getArrAppInfo
YoutubeSeriesDownloaderProcess verifyApiAccess
echo "Script sleeping for 2 hours..." YoutubeSeriesDownloaderProcess
sleep 2h log "Script sleeping for 2 hours..."
done 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 exit