Code: Select all
@echo off
setlocal EnableDelayedExpansion
:begin
set /p url=YOUTUBE LINK:
for /f %%a in ('yt-dlp -g %url% -f "bv*[vcodec^=avc1][ext=mp4][height<=720]+ba[ext=m4a]/b[vcodec^=avc1][ext=mp4]/b"') do set /a url+=1 & set "url!url!=%%a"
mplayer "%url1%" -audiofile "%url2%"
cls
goto :begin