Guest User

A shorter youtube-dl download method y.bat

a guest
Mar 4th, 2019
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.84 KB | None | 0 0
  1. :::::::::::::::::::::::::::::::::::::::::::::::
  2. :: WHAT IS y.bat
  3. ::  y.bat is a program which can be run from cmd
  4. ::  you can type long youtube-dl strings more efficiently
  5. ::
  6. :: HOW TO INSTALL y.bat
  7. ::  save this text as y.bat
  8. ::  put y.bat in the environment path, or the working folder
  9. ::  y.bat will download to the working folder
  10. ::
  11. :: HOW TO USE y.bat
  12. ::  there are 2 parameters to type after y
  13. ::  the first is the link to pass to youtube-dl's -f or -F
  14. ::  the second is either
  15. ::   F or -F
  16. ::   in which case the result will be
  17. ::   youtube-dl -F https://www.youtube.com/watch?v=oHg5SJYRHA0
  18. ::  or the quality for -f, as in 135+140
  19. ::
  20. :: example 1: download in best quality
  21. ::  y https://www.youtube.com/watch?v=oHg5SJYRHA0
  22. :: result: youtube-dl -f best https://www.youtube.com/watch?v=oHg5SJYRHA0
  23. ::
  24. :: example 2: download in specified quality
  25. ::  y https://www.youtube.com/watch?v=oHg5SJYRHA0 135+140
  26. :: result: youtube-dl -f 135+140 https://www.youtube.com/watch?v=oHg5SJYRHA0
  27. ::
  28. :: example 3: check quality list
  29. ::  y https://www.youtube.com/watch?v=oHg5SJYRHA0 F
  30. :: result: youtube-dl -F https://www.youtube.com/watch?v=oHg5SJYRHA0
  31. ::
  32. :: example 4: check quality list
  33. ::  y https://www.youtube.com/watch?v=oHg5SJYRHA0 -F
  34. :: result: youtube-dl -F https://www.youtube.com/watch?v=oHg5SJYRHA0
  35. ::
  36. :: Now your grandma can download with youtube-dl and heal her arthritis at the same time!
  37. :::::::::::::::::::::::::::::::::::::::::::::::
  38.  
  39. @echo off
  40. IF %1.==. GOTO No1
  41. IF %2.==. GOTO No2
  42. IF %2.==F. GOTO No3
  43. IF %2.==-F. GOTO No3
  44. IF NOT %2.==F. GOTO No4
  45. GOTO End1
  46. :No1
  47.     ECHO provide a link
  48. GOTO End1
  49. :No2
  50.     ::ECHO No param 2
  51.     youtube-dl -f best %1
  52. GOTO End1
  53. :No3
  54.     ::ECHO param 2 F
  55.     youtube-dl -F %1
  56. GOTO End1
  57. :No4
  58.     ::ECHO param 2 not F %2
  59.     youtube-dl -f %2 %1
  60. GOTO End1
  61. :End1
  62. :::::::::::::::::::::::::::::::::::::::::::::::
Add Comment
Please, Sign In to add comment