@@ -42,13 +42,12 @@ New-Variable -Name UI_Path -Value "D:/Programmes/Internet/youtube-dl/YDL-UI_Port
4242New-Variable - Name myCookies - Value " D:\OneDrive\Backup\Internet\youtube-dl\cookies.txt" - Option Constant
4343
4444New-Variable - Name directory - Value (Join-Path - Path " $downloadsPath " - ChildPath " $DownloadFolderName " ) - Option Constant
45- New-Variable - Name format - Value " bestvideo[vcodec^=avc1]+bestaudio[ext=m4a]/best" - Option Constant
4645New-Variable - Name templateNameChannel - Value " %(uploader|)s%(uploader& - )s%(title).70s.%(ext)s" - Option Constant
4746New-Variable - Name templateNameTitle - Value " %(title).70s.%(ext)s" - Option Constant
4847# if useTitle is true then use $templateNameTitle else $templateNameChannel
4948New-Variable - Name useTitle - Value $true - Option Constant
5049# defaut quality for video (make it compatible to upload on 𝕏)
51- New-Variable - Name videoQuality - Value " bestvideo*[vcodec^=avc1]+bestaudio* [acodec^=mp4a]/bestvideo*+bestaudio* /best"
50+ New-Variable - Name videoQuality - Value " bestvideo*[vcodec^=avc1]+bestaudio[acodec^=mp4a]/bestvideo*+bestaudio/best"
5251# Videos will use this container
5352New-Variable - Name videoContainer - Value " mp4" - Option Constant
5453# set URLs for which the script will detect as audio
@@ -384,15 +383,15 @@ if ($url -and -not $install -and -not $uninstall) {
384383 " --audio-format" , " mp3" ,
385384 " --audio-quality" , " 0" ,
386385 " -o" , " $output " ,
387- " -f" , " bestaudio[ext=mp3]/bestaudio* /bestvideo*+bestaudio* " ,
386+ " -f" , " bestaudio[ext=mp3]/bestaudio/bestvideo*+bestaudio" ,
388387 $DL_URL
389388 )
390389 }
391390 else {
392391 $global :options = @ (
393392 " --extract-audio" ,
394393 " -o" , " $output " ,
395- " -f" , " bestaudio*[ext=$QUALITY ]/bestaudio* /bestvideo*+bestaudio* " ,
394+ " -f" , " bestaudio*[ext=$QUALITY ]/bestaudio/bestvideo*+bestaudio" ,
396395 $DL_URL
397396 )
398397 }
@@ -402,10 +401,10 @@ if ($url -and -not $install -and -not $uninstall) {
402401
403402 if ($QUALITY ) {
404403 if ($QUALITY -ieq " best" ) {
405- $videoQuality = " bestvideo*+bestaudio* /best"
404+ $videoQuality = " bestvideo*+bestaudio/best"
406405 }
407406 else {
408- $videoQuality = " bestvideo*[vcodec^=avc1][height<=$QUALITY ]+bestaudio* [acodec=mp4a]/bestvideo*[height<=$QUALITY ]+bestaudio* /best"
407+ $videoQuality = " bestvideo*[vcodec^=avc1][height<=$QUALITY ]+bestaudio[acodec=mp4a]/bestvideo*[height<=$QUALITY ]+bestaudio/best"
409408 }
410409 }
411410 $global :options = @ (
0 commit comments