Skip to content

Instantly share code, notes, and snippets.

@i2van
Last active June 8, 2023 18:28
Show Gist options
  • Save i2van/06e34143f615c3a74d91b949d842af9b to your computer and use it in GitHub Desktop.
Save i2van/06e34143f615c3a74d91b949d842af9b to your computer and use it in GitHub Desktop.
Windows batch script for downloading video using yt-dlp
:: Windows batch script for downloading video using yt-dlp.
:: 1. Get yt-dlp here: https://github.com/yt-dlp/yt-dlp/releases
:: 2. Put links (one per line) in %this_script_name%.txt next to script.
@echo off
::set update=stable@2023.03.04
set update=nightly
start "Downloading from YouTube..." cmd /k yt-dlp --update-to %update% ^&^& yt-dlp -R 30 -o "%%(upload_date)s - %%(title)s [%%(duration_string)s].%%(ext)s" -a "%~dpn0.txt" ^&^& title Done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment