First make sure you have the latest version of youtube-dl, currently package managers are out of date.
also install aria2 to speed things up a little
Make a sub folder named
to hold your dictionaries and create a process shell script for each using the following code as a templatedictionaries
process_1.sh
Code: Select all
#!/bin/sh
filename='dictionaries/1.txt'
echo Start
while read p; do
youtube-dl --all-subs --write-all-thumbnails --write-info-json --write-annotations --convert-subs vtt --yes-playlist -w -i -f "(webm)[height>2000]"+251 --external-downloader aria2c --external-downloader-args "-x 5 -j 5 --user-agent='Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0' " -o '%(playlist)s/%(id)s/%(id)s.%(ext)s' https://www.youtube.com/results?search_query="$p"+creative+commons+4k+uhd
done < $filename
If you don't want to download with aria remove
Code: Select all
--external-downloader aria2c --external-downloader-args "-x 5 -j 5 --user-agent='Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0' "
Make sure your in the correct directory and type
Code: Select all
bash process_1.sh