Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #Scinorandex' Parallel YouTube Downloader
- #Gets Video ID's for the channels in ~/yt-dl/channel-list and dumps it to temp.old
- youtube-dl -s --get-id --batch-file ~/yt-dl/channel-list >> ~/yt-dl/temp.old
- #Prepends and dumps to ~/yt-dl/temp.new
- awk '$0="https://www.youtube.com/watch?v="$0' ~/yt-dl/temp.old > ~/yt-dl/temp.new
- #Parallel Time
- cat ~/yt-dl/temp.new | parallel "youtube-dl --output ~/fileserver/youtube/'%(uploader)s/%(upload_date)s- %(title)s.%(ext)s' --download-archive ~/yt-dl/already-downloaded -f best -i -R infinite {}"
- #Delete Temps
- rm ~/yt-dl/temp.old
- rm ~/yt-dl/temp.new
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement