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 #!/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