Guest User

Untitled

a guest
Sep 20th, 2025
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. ########################################
  2. # For downloading videos in a playlist #
  3. ########################################
  4.  
  5. # Set output file name. Prefix it with the playlist index number padded to 3 digits.
  6. -o "%(playlist_index)03d - %(title)s.%(ext)s"
  7.  
  8. # Choose best available video and audio formats. Uncomment to choose desired resolution.
  9. #-f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best"
  10. #-f "bestvideo[ext=mp4][height<=1080]+bestaudio[ext=m4a]/best[ext=mp4][height<=1080]/best[height<=1080]"
  11. -f "bestvideo[ext=mp4][height<=720]+bestaudio[ext=m4a]/best[ext=mp4][height<=720]/best[height<=720]"
  12.  
  13. # Do NOT use YouTube's last-modified time to set the output file modified time
  14. --no-mtime
  15.  
  16. # Set output path
  17. --paths "~/Desktop/yt"
  18.  
  19. # 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
  20. --replace-in-metadata "description" "(?<!\r)\n" "\r\n"
  21.  
  22. # Put the original URL, title, uploader, uploader id, along with the video description, into the comment tag
  23. --parse-metadata "URL %(webpage_url)s
  24. TITLE %(title)s
  25. UPLOADER %(uploader)s
  26. UPLOADER ID %(uploader_id)s
  27.  
  28. %(description)s:(?s)(?P<meta_comment>.+)"
  29.  
  30. # Put playlist index into track number
  31. --parse-metadata "playlist_index:%(track_number)s"
  32.  
  33. # Embed metadata in file
  34. --embed-metadata
  35.  
  36. # Embed thumbnail
  37. --embed-thumbnail
Advertisement
Add Comment
Please, Sign In to add comment