Skip to content

Instantly share code, notes, and snippets.

View nicolascrab's full-sized avatar

nicolasrak nicolascrab

View GitHub Profile
@nicolascrab
nicolascrab / download_playlist.md
Last active September 19, 2025 20:20
yt-dlp commands

Downloading a yt playlist in mp3 format

yt-dlp -o "Music/%(playlist)s/mp3/%(title)s.%(ext)s" -f bestaudio -x --audio-format mp3 --audio-quality 0 --ignore-errors 'https://www.youtube.com/playlist?list=PLMtjL_dNNnOZiK4sSQ8dXR8PoMH_8fuP9' 2> audio_error_log.txt

Downloading a yt playlist with 720p video and best available audio. ignoring errors and logging them into a txt.

yt-dlp -o "Music/%(playlist)s/mp4/%(title)s.%(ext)s" -f "bestvideo[height<=720]+bestaudio/best" --merge-output-format mp4 --ignore-errors 'https://www.youtube.com/playlist?list=PLMtjL_dNNnOZiK4sSQ8dXR8PoMH_8fuP9' 2> error_log.txt