Last active
August 29, 2015 14:10
-
-
Save kevyworks/7d58e221675ef770da07 to your computer and use it in GitHub Desktop.
Youtube-dl Batch file
This file contains 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
@echo off | |
CLS | |
SET "EXT=" | |
SET "URL=" | |
IF NOT EXIST "videos" md videos | |
IF EXIST "list.txt" ( | |
GOTO :startbatch | |
) ELSE ( | |
GOTO :startsingle | |
) | |
:startsingle | |
SET /P URL="Whats the video url?* " | |
IF "%URL%" == "" GOTO :nourl | |
SET /P EXT="What format? [ flv / mp4 ]" | |
IF "%EXT%" == "" SET EXT=%%(ext)s | |
youtube-dl.exe -o "videos\%%(title)s.%EXT%" %URL% | |
GOTO :end | |
:startbatch | |
SET /P EXT="What format? [ flv / mp4 ]" | |
IF "%EXT%" == "" SET EXT=%%(ext)s | |
youtube-dl.exe -a "list.txt" -o "videos\%%(title)s.%EXT%" | |
GOTO :end | |
:nourl | |
echo "[!] Url is not defined." | |
:end | |
echo. | |
echo Done. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment