Skip to content

Instantly share code, notes, and snippets.

@Alistair1231
Last active August 25, 2022 22:11
Show Gist options
  • Save Alistair1231/ea5a38bf06ff6084aadb396a027d2d1f to your computer and use it in GitHub Desktop.
Save Alistair1231/ea5a38bf06ff6084aadb396a027d2d1f to your computer and use it in GitHub Desktop.
yt-dlp (Youtube-dl) download music playlist
yt-dlp 'https://www.youtube.com/playlist?list=PLXkGLqXZchysA87AHg0fYOZTLEHBZsMuT' `
-I 1:200 <# only download index 1 - 200 #> `
-o "%(playlist_count+1-playlist_index)d - %(uploader)s - %(title)s.%(ext)s" <# name is "index (reverse) - uploader - title" #> `
--embed-thumbnail <# needs atomicparsley to be installed #> `
-S "abr:192" <# yt-dlp only!, best audio that has at max 192kbit/s #> `
-f "ba" <# format with best audio #> `
-x <# audio only #> `
--audio-format mp3 <# needs ffmpeg installed #> `
--download-archive ./archive.txt <# only download files that weren't already downloaded #> `
--restrict-filenames <# only ascii characters in filename #>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment