File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ set "youtube-dl_pref=best"
77set " youtube-dl_vpref = bestvideo"
88set " youtube-dl_apref = bestaudio"
99if " %1 " == " sub" (
10- if " !mediabuilder_lang! " == " " (set " youtube-dl_spref=--sub-format srt/ass/ssa/vtt/best" ) else (set " youtube-dl_spref=--sub-format srt/ass/ssa/vtt/best --sub-lang !mediabuilder_lang! " )
10+ if " !mediabuilder_lang! " == " " (set " youtube-dl_spref=--sub-format srt/ass/ssa/vtt/best" ) else (set " youtube-dl_spref=--sub-format srt/ass/ssa/vtt/best --sub-lang " !mediabuilder_lang! " " )
1111)
1212
1313if /I " !mediabuilder_profile! " == " [TV]Samsung LED40" (
@@ -61,7 +61,7 @@ echo ###PlayOn_Separator###
6161
6262if " %1 " == " mux" for /F " delims=" %%a in ('@ !youtube-dl_path! --no-playlist --youtube-skip-dash-manifest --encoding utf-8 -e --get-filename -o ###PlayOn_Separator### -g -f " %youtube-dl_vpref% +%youtube-dl_apref% /%youtube-dl_pref% " !mediabuilder_url! ') do (set " youtube-dl_url=%%a " & echo !youtube-dl_url:.m3u8 =.mp4 ! )
6363
64- if " %1 " == " sub" for /F " delims=" %%a in ('@ !youtube-dl_path! --no-playlist --youtube-skip-dash-manifest --encoding utf-8 --write-sub --print " ^{" " requested_subtitles" " :%% (requested_subtitles)j^}" %youtube-dl_spref% !mediabuilder_url! ') do (set " youtube-dl_url=%%a " & echo !youtube-dl_url:.m3u8 =.vtt ! )
64+ if " %1 " == " sub" for /F " delims=" %%a in ('@ !youtube-dl_path! --no-playlist --youtube-skip-dash-manifest --encoding utf-8 --write-sub --print " ^{\ " requested_subtitles\ " :%% (requested_subtitles)j^}" %youtube-dl_spref% !mediabuilder_url! ') do (set " youtube-dl_url=%%a " & echo !youtube-dl_url:.m3u8 =.vtt ! )
6565
6666:end
6767endlocal
You can’t perform that action at this time.
0 commit comments