Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #!/bin/bash
  2. set -e
  3. set -u
  4.  
  5. yt_list="$1"
  6. jbs="$2"
  7.  
  8. if [ ! -f "$yt_list" ]; then
  9. echo "File $yt_list is missing"
  10. exit 1
  11. fi
  12.  
  13. cat $yt_list | parallel --jobs $jbs 'youtube-dl -ciw --restrict-filenames -o "%(upload_date)s-%(id)s-%(title)s.%(ext)s" --add-metadata --write-description --write-annotation --write-thumbnail -f "bestvideo[height<=720]+bestaudio/best[height<=720]" --merge-output-format "mp4" {}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement