GISTS/windows/video scripts/youtube-dl-video.bat

16 lignes
702 o
Batchfile

@echo off
set savepath=B:\Albirew\Bureau\YT
set binpath=%~dp0
mkdir %savepath% 2>nul
cd %savepath%
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.
set /P command=Enter options and video URL:
if ["%command%"] == [""] exit 0
echo.
echo $^>yt-dlp -f "bv+ba/b" --console-title --remux-video mkv --write-subs --embed-subs --sub-lang fr,en --yes-playlist --geo-bypass %command%
"%binpath%\yt-dlp.exe" -f "bv+ba/b" --console-title --remux-video mkv --write-subs --embed-subs --sub-lang fr,en --yes-playlist --geo-bypass %command%
IF %ERRORLEVEL% NEQ 0 pause