Created
September 21, 2022 15:48
-
-
Save drashna/d347824d0a40caed5d3d8911b56c5967 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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