gv_d := StrReplace(A_Desktop, "\Desktop") ;Dynamic UserProfile
gv_p=%gv_d%\cdx
<!Del::ydl() ;opus
<^Del::ydl(1) ;mp3
<+Del::ydl(2) ;Video
ydl(m=0){
global gv_d, gv_p
vDe=%gv_p%\Media Toolz\ffmpeg-2022-04-28-essentials\bin
vDi=%gv_d%\Desktop\LTz\Inz
vDo=%gv_d%/Downloads/Videos/
Tx=playlist,playlist_title,uploader,upload_date,chapter_number,chapter,playlist_index
Loop, parse, Tx, `,
vDo.="%(" A_Loopfield ")s/"
SendInput{Click r}
x:=RegexReplace(Clipboard, "^.*yout.*(?:be/|v=|shorts/)(.*)[?&.]*", "$1")
;x=-a "y-i.txt"
vCB=%comspec% /c cd /d "%vDi%"&"%vDe%\yt-dlp.exe" -qckw --console-title --geo-bypass
vCE=--user-agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Safari/605.1.15" -o "%vDo%`%(title)s-`%(id)s-`%(format_id)s.`%(ext)s" --download-archive "y-h.txt" %x%>>%gv_d%\xoxo.log 2>&1
Runwait, % vCB (m=2 ? " -f ""(best[width>=1920][ext=mp4]/best[ext=mp4]/best)[protocol^=https]"" --no-playlist " : " -x -f ""bestaudio[protocol^=https]"" --audio-format " (m ? "mp3" : "opus") " --audio-quality 0 --ffmpeg-location """ vDe """ ") vCE,, Hide
;Run, %comspec% /c cd /d "%vDi%"&yt-a.txt,, Hide
Traytip, % x, Done!, 1500
}
Just Copy the link on right click. Create LTz\Inz directory in Desktop.