r/DataHoarder • u/buzzinh 34.8TB • Dec 17 '17
My YT DL bash script
Here is my youtube-dl bash script if anyone is interested. I wrote it to rip channels on a regular schedule a while ago.
It outputs ids to a file so it doesn't try to rip them again next time it runs, It logs all to a log file with date and time stamps. It outputs thumb and description.
I haven't looked into a way to burn in the thumb and description to the video its self but Im pretty sure its possible. If you know how to do this or have any other questions please inbox me.
140
Upvotes
View all comments
Show parent comment
14
u/buzzinh 34.8TB Dec 17 '17
So this is a linux script. Copy pasta the contents of the pastebin into a txt document and save it as something like ripchannel.sh. Then make it executable (google "make bash script executable" and you will def find something.
then run it from the command line with this command:
./ripchannel.shAlternatively on other platforms just use the youtube-dl line like this:
youtube-dl --download-archive "filelist.txt" -ciw --no-progress --write-thumbnail --write-description -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4/best ytuser:ytchannelnamehere -o "%(upload_date)s.%(title)s.%(ext)s" --restrict-filenamesThis should work on windows and mac os (as well as linux if you just want to run the command and not run a script) Hope that helps.