Skip to content

Instantly share code, notes, and snippets.

@eduardopintor
Created October 2, 2025 22:40
Show Gist options
  • Select an option

  • Save eduardopintor/2d84082c26768b97bd28e70645535f70 to your computer and use it in GitHub Desktop.

Select an option

Save eduardopintor/2d84082c26768b97bd28e70645535f70 to your computer and use it in GitHub Desktop.
Youtube playlist mp3 download - Windows
@echo off
title Youtube-Dlp
cd C:\Program Files (x86)\Youtube-dlp
set /p "url=Enter URL: "
choice /c YN /m "Download Whole Playlist?"
if %ERRORLEVEL% == 1 (yt-dlp -x --audio-format mp3 -o "C:\Users\YourName\Music\Unsorted\%%(title)s.%%(ext)s" --rm-cache-dir "%url%")
if %ERRORLEVEL% == 2 set /p "startnumber= Start at: "
if %ERRORLEVEL% == 2 set /p "endnumber= End at: "
if %ERRORLEVEL% == 2 yt-dlp -x --audio-format mp3 -o "C:\Users\YourName\Music\Unsorted\%%(title)s.%%(ext)s" --rm-cache-dir --playlist-start %startnumber% --playlist-end %endnumber% "%url%"
CMD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment