Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :::::::::::::::::::::::::::::::::::::::::::::::
- :: WHAT IS y.bat
- :: y.bat is a program which can be run from cmd
- :: you can type long youtube-dl strings more efficiently
- ::
- :: HOW TO INSTALL y.bat
- :: save this text as y.bat
- :: put y.bat in the environment path, or the working folder
- :: y.bat will download to the working folder
- ::
- :: HOW TO USE y.bat
- :: there are 2 parameters to type after y
- :: the first is the link to pass to youtube-dl's -f or -F
- :: the second is either
- :: F or -F
- :: in which case the result will be
- :: youtube-dl -F https://www.youtube.com/watch?v=oHg5SJYRHA0
- :: or the quality for -f, as in 135+140
- ::
- :: example 1: download in best quality
- :: y https://www.youtube.com/watch?v=oHg5SJYRHA0
- :: result: youtube-dl -f best https://www.youtube.com/watch?v=oHg5SJYRHA0
- ::
- :: example 2: download in specified quality
- :: y https://www.youtube.com/watch?v=oHg5SJYRHA0 135+140
- :: result: youtube-dl -f 135+140 https://www.youtube.com/watch?v=oHg5SJYRHA0
- ::
- :: example 3: check quality list
- :: y https://www.youtube.com/watch?v=oHg5SJYRHA0 F
- :: result: youtube-dl -F https://www.youtube.com/watch?v=oHg5SJYRHA0
- ::
- :: example 4: check quality list
- :: y https://www.youtube.com/watch?v=oHg5SJYRHA0 -F
- :: result: youtube-dl -F https://www.youtube.com/watch?v=oHg5SJYRHA0
- ::
- :: Now your grandma can download with youtube-dl and heal her arthritis at the same time!
- :::::::::::::::::::::::::::::::::::::::::::::::
- @echo off
- IF %1.==. GOTO No1
- IF %2.==. GOTO No2
- IF %2.==F. GOTO No3
- IF %2.==-F. GOTO No3
- IF NOT %2.==F. GOTO No4
- GOTO End1
- :No1
- ECHO provide a link
- GOTO End1
- :No2
- ::ECHO No param 2
- youtube-dl -f best %1
- GOTO End1
- :No3
- ::ECHO param 2 F
- youtube-dl -F %1
- GOTO End1
- :No4
- ::ECHO param 2 not F %2
- youtube-dl -f %2 %1
- GOTO End1
- :End1
- :::::::::::::::::::::::::::::::::::::::::::::::
Add Comment
Please, Sign In to add comment