Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ########################################
- # For downloading videos in a playlist #
- ########################################
- # Set output file name. Prefix it with the playlist index number padded to 3 digits.
- -o "%(playlist_index)03d - %(title)s.%(ext)s"
- # Choose best available video and audio formats. Uncomment to choose desired resolution.
- #-f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best"
- #-f "bestvideo[ext=mp4][height<=1080]+bestaudio[ext=m4a]/best[ext=mp4][height<=1080]/best[height<=1080]"
- -f "bestvideo[ext=mp4][height<=720]+bestaudio[ext=m4a]/best[ext=mp4][height<=720]/best[height<=720]"
- # Do NOT use YouTube's last-modified time to set the output file modified time
- --no-mtime
- # Set output path
- --paths "~/Desktop/yt"
- # In the description, replace any \n which are NOT preceeded by \r to produce proper \r\n line breaks which are shown correctly in VLC & Mp3tag
- --replace-in-metadata "description" "(?<!\r)\n" "\r\n"
- # Put the original URL, title, uploader, uploader id, along with the video description, into the comment tag
- --parse-metadata "URL %(webpage_url)s
- TITLE %(title)s
- UPLOADER %(uploader)s
- UPLOADER ID %(uploader_id)s
- %(description)s:(?s)(?P<meta_comment>.+)"
- # Put playlist index into track number
- --parse-metadata "playlist_index:%(track_number)s"
- # Embed metadata in file
- --embed-metadata
- # Embed thumbnail
- --embed-thumbnail
Advertisement
Add Comment
Please, Sign In to add comment