Skip to content

Instantly share code, notes, and snippets.

@jtrent238
Created November 8, 2020 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtrent238/38ee5735b49210e7022a1ee690162023 to your computer and use it in GitHub Desktop.
Save jtrent238/38ee5735b49210e7022a1ee690162023 to your computer and use it in GitHub Desktop.
@echo off
cls
cd /D "%~dp0"
set /p channel="Enter Channel URL: "
REM channel=https://www.youtube.com/channel/UCiSE_HQv_u0jP2OEKg8ioug
echo Getting stuff ready please wait...
powershell -Command "& {wget https://youtube-dl.org/downloads/latest/youtube-dl.exe -OutFile youtube-dl.exe}"
powershell -Command "& {wget https://github.com/ShareX/FFmpeg/releases/download/v4.3.1/ffmpeg-4.3.1-win32.zip -OutFile ffmpeg-4.3.1-win32.zip}"
powershell -Command "& {Expand-Archive -LiteralPath 'ffmpeg-4.3.1-win32.zip'}"
powershell -Command "& {mv ./ffmpeg-4.3.1-win32/ffmpeg.exe ./}"
powershell -Command "& {rm ffmpeg-4.3.1-win32}"
echo --format ("bestvideo[width>=1920]"/bestvideo)+bestaudio/best>>config.txt
echo --restrict-filenames>>config.txt
echo --merge-output-format mkv>>config.txt
echo --write-description >>config.txt
echo --write-info-json >>config.txt
echo --write-annotations >>config.txt
echo --write-thumbnail >>config.txt
echo --all-subs >>config.txt
echo --download-archive archive.txt >>config.txt
echo --ignore-errors>>config.txt
youtube-dl %channel% --output %%(uploader)s/%%(upload_date)s.%%(title)s.%%(id)s.%%(ext)s --config-location config.txt
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment