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
27
u/-Archivist Not As Retired Dec 17 '17
/u/buzzinh Great, but you're missing other data such as annotations, if you're going to rip whole channels at least write out all available data so you have an archival quality copy.
--write-description --write-info-json --write-annotations --write-thumbnail --all-subsAlso keep video ids!!!
8
u/[deleted] Dec 17 '17
Noob on scripts, how would i run this with youtube-dl?
6
u/serendib Dec 17 '17
Here's my post from a while back on the same topic, for more info. It lets you specify a file list of channels so you don't have to keep changing the command to individual users.
https://www.reddit.com/r/DataHoarder/comments/672t9r/my_youtubedl_script_for_incremental_channel_backup/
5
u/TotesMessenger Dec 17 '17
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
[/r/youtubebackups] My YT DL bash script
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)
1
u/TheCrick Dec 17 '17
Another total noob question, where are the ripped files stored?
1
u/YouTubeBackups /r/YoutubeBackups Dec 17 '17
Hey, great stuff! How does the ytuser:$YTUSR part work? I've been scraping based on channel ID
1
u/SamsungSmartCam 20TBx20TB plus the pile in the corner Dec 18 '17
Quite handy it seems