GISTS/windows/video scripts/youtube-dl-audio-and-video.bat
2024-11-14 20:16:24 +01:00

23 lignes
911 o
Batchfile

@echo off
set savepath=B:\Albirew\Bureau\YT
set binpath=%~dp0
echo Usage: yt-dlp.exe [OPTIONS] URL [URL...]
echo --geo-bypass-country CODE Force bypass geographic restriction with ISO 3166-2 country code
echo eg: -4 (IPv4) -geo-bypass-country us
echo.
echo Leave empty to update
echo.
set /P command=Enter options and video URL:
if ["%command%"] == [""] (
echo $^>yt-dlp --update
"%binpath%\yt-dlp.exe" --update
if %ERRORLEVEL% NEQ 0 pause
exit 0
)
mkdir %savepath% 2>nul
cd %savepath%
echo.
echo $^>yt-dlp -f "bv+ba/b" --console-title --remux-video mkv --write-auto-subs --embed-subs --convert-subs ass --sub-lang fr,en,en.* --yes-playlist --geo-bypass "%command%"
"%binpath%\yt-dlp.exe" -f "bv+ba/b" --console-title --remux-video mkv --write-auto-subs --embed-subs --convert-subs ass --sub-lang fr,en,en.* --yes-playlist --geo-bypass "%command%"
IF %ERRORLEVEL% NEQ 0 pause