Created
June 4, 2019 08:53
-
-
Save abakum/721125e13f09111dcdaded6753081b3b to your computer and use it in GitHub Desktop.
Download microfilm from youtube
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
cd /d c:\msys64\mingw64\bin\ | |
call :youtube %~n0 | |
pause | |
goto :EOF | |
:youtube | |
youtube-dl -o "%~dp0\%%(playlist_title)s\%%(title)s.%%(ext)s" --ignore-config -f worstvideo[ext=mp4]+bestaudio[ext=m4a] https://www.youtube.com/channel/%1 --download-archive "%~dp0\%~n0.txt" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
set y=32
if defined ProgramFiles(x86) set y=64
cup msys2 --params "'/InstallDir:C:\msys%y%'"
mingw%y%
pacman -S $MINGW_PACKAGE_PREFIX-ffmpeg
pacman -S $MINGW_PACKAGE_PREFIX-python2
pacman -S $MINGW_PACKAGE_PREFIX-python2-pip
pip install youtube-dl