@echo off
title YTD Song URL Downloader

cd /d C:\YTD

set /p URL=Enter video or playlist URL:

if "%URL%"=="" (
    echo No URL entered.
    pause
    exit /b 1
)

echo.
echo Downloading audio...
echo.

"C:\YTD\yt-dlp.exe" ^
--ffmpeg-location "C:\YTD\FFMPEG\bin" ^
-x ^
--audio-format mp3 ^
--audio-quality 5 ^
--add-metadata ^
-o "C:\YTD\Songs\%%(title)s.%%(ext)s" ^
"%URL%"

echo.
echo Download complete.
pause
