@ -7,4 +7,16 @@
# Version: 3.3.0
#
yt-dlp --format " $( cat " $( realpath " $( dirname " $0 " ) /../../.. " ) /Formats/audio_only_formats.txt " | sed '/^#/d' | tr -d '\n' ) " --verbose --force-ipv4 --sleep-requests 1 --sleep-interval 5 --max-sleep-interval 30 --ignore-errors --no-continue --no-overwrites --download-archive archive.log --add-metadata --parse-metadata "%(title)s:%(meta_title)s" --parse-metadata "%(uploader)s:%(meta_artist)s" --write-description --write-info-json --write-annotations --write-thumbnail --embed-thumbnail --extract-audio --check-formats --concurrent-fragments 3 --match-filter "!is_live & !live" --output "%(uploader)s/%(uploader)s - %(upload_date)s - %(title)s/%(uploader)s - %(upload_date)s - %(title)s [%(id)s].%(ext)s" --throttled-rate 100K --batch-file "Source - Channels.txt" 2>& 1 | tee output.log
pathToFormat = " $( realpath " $( dirname " $0 " ) /../../.. " ) /Formats/audio_only_formats.txt "
if ! [ -f " $pathToFormat " ] ; then
echo " Error: File containing yt-dlp formats not found under \" $pathToFormat \" " >> /dev/stderr
exit 1
fi
convertedFormats = $( cat $pathToFormat | sed '/^#/d' | tr -d '\n' )
if [ -z " $convertedFormats " ] ; then
echo "Error: Something went wrong when reading/transforming the content of the yt-dlp formats file." >> /dev/stderr
exit 1
fi
yt-dlp --format $convertedFormats --verbose --force-ipv4 --sleep-requests 1 --sleep-interval 5 --max-sleep-interval 30 --ignore-errors --no-continue --no-overwrites --download-archive archive.log --add-metadata --parse-metadata "%(title)s:%(meta_title)s" --parse-metadata "%(uploader)s:%(meta_artist)s" --write-description --write-info-json --write-annotations --write-thumbnail --embed-thumbnail --extract-audio --check-formats --concurrent-fragments 3 --match-filter "!is_live & !live" --output "%(uploader)s/%(uploader)s - %(upload_date)s - %(title)s/%(uploader)s - %(upload_date)s - %(title)s [%(id)s].%(ext)s" --throttled-rate 100K --batch-file "Source - Channels.txt" 2>& 1 | tee output.log