Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #Scinorandex' Parallel YouTube Downloader
  4.  
  5. #Gets Video ID's for the channels in ~/yt-dl/channel-list and dumps it to temp.old
  6. youtube-dl -s --get-id --batch-file ~/yt-dl/channel-list >> ~/yt-dl/temp.old
  7.  
  8. #Prepends and dumps to ~/yt-dl/temp.new
  9. awk '$0="https://www.youtube.com/watch?v="$0' ~/yt-dl/temp.old > ~/yt-dl/temp.new
  10.  
  11. #Parallel Time
  12. 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 {}"
  13.  
  14. #Delete Temps
  15. rm ~/yt-dl/temp.old
  16. rm ~/yt-dl/temp.new
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement