Skip to content

Instantly share code, notes, and snippets.

@drashna
Created September 21, 2022 15:48
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 drashna/d347824d0a40caed5d3d8911b56c5967 to your computer and use it in GitHub Desktop.
Save drashna/d347824d0a40caed5d3d8911b56c5967 to your computer and use it in GitHub Desktop.
@Set channel=%1
@set channel_name=%~2
@if not exist "S:\ServerFolders\Videos\Misc\YouTubeChannels\%channel_name%" mkdir "S:\ServerFolders\Videos\Misc\YouTubeChannels\%channel_name%"
@youtube-dl --rate-limit 5M --download-archive "S:\ServerFolders\Videos\Misc\YouTubeChannels\%channel_name%\filelist.txt" -f bestvideo+bestaudio %channel% -ciw -o "S:\ServerFolders\Videos\Misc\YouTubeChannels\%channel_name%\[%%(upload_date)s]_%%(title)s" --write-description --write-thumbnail --write-sub --sub-lang en --sub-format srt --embed-subs --embed-thumbnail --add-metadata --convert-subs srt --restrict-filenames --merge-output-format mp4
@youtube-dl --rate-limit 5M --download-archive "S:\ServerFolders\Videos\Misc\YouTubeChannels\%channel_name%\filelist.txt" -f bestvideo+bestaudio %channel% -ciw -o "S:\ServerFolders\Videos\Misc\YouTubeChannels\%channel_name%\[%%(upload_date)s]_%%(title)s" --write-description --write-thumbnail --write-sub --sub-lang en --sub-format srt --embed-subs --embed-thumbnail --add-metadata --convert-subs srt --restrict-filenames --merge-output-format mkv
@del "S:\ServerFolders\Videos\Misc\YouTubeChannels\%channel_name%\*.temp.mp4"
@del "S:\ServerFolders\Videos\Misc\YouTubeChannels\%channel_name%\*.f*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment