Skip to content

Instantly share code, notes, and snippets.

@abakum
Created June 4, 2019 08:53
Show Gist options
  • Save abakum/721125e13f09111dcdaded6753081b3b to your computer and use it in GitHub Desktop.
Save abakum/721125e13f09111dcdaded6753081b3b to your computer and use it in GitHub Desktop.
Download microfilm from youtube
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"
@abakum
Copy link
Author

abakum commented Jun 4, 2019

Rename or mklink this script with real value where:
CHANNEL is your youtube's channel ID
UPLOADER is your youtube's NAME

@abakum
Copy link
Author

abakum commented Jun 4, 2019

"%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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment