lalaladoomsday

my custom yt-dlp helper .bat

Oct 3rd, 2026
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2.  
  3. title YTDLP: master helper (temporeary)
  4. echo ....:-.--:..-:.--.:---:-.:..:.-
  5. echo a master helper at last
  6. echo ---
  7. set QSEvV=0
  8.  
  9. :verystart
  10. set NIER=
  11. set HQUEUE=0
  12. set CFORMAT=0
  13. set STARTNO=1
  14. set INPUTURL1=
  15. set INPUTURL2=
  16. echo choose the format:
  17. echo 1: Typical Audio
  18. echo 2: Video Sites
  19. echo 3: Thumbnail
  20. echo 4: Quickstart everything
  21. echo 5: Update
  22. echo 6: Exit
  23. choice /C 123456 /N /M "-> "
  24. if %errorlevel% equ 1 goto TyAu
  25. if %errorlevel% equ 2 goto ViSi
  26. if %errorlevel% equ 3 goto Thmb
  27. if %errorlevel% equ 4 goto QSEv
  28. if %errorlevel% equ 5 goto Upda
  29. if %errorlevel% equ 6 goto Exit
  30. echo unexpected choice...?
  31. goto Cont
  32.  
  33. :QSEv
  34. echo Quickstart everything...
  35. if %QSEvV% equ 0 goto TrueQSEv
  36. if %QSEvV% equ 1 goto FalseQSEv
  37.  
  38. :TrueQSEv
  39. if %QSEvV% equ 0 set QSEvV=1
  40. echo Set to %QSEvV%!
  41. goto verystart
  42.  
  43. :FalseQSEv
  44. if %QSEvV% equ 1 set QSEvV=0
  45. echo Set to %QSEvV%!
  46. goto verystart
  47.  
  48. :TyAu
  49. set CFORMAT=1
  50. echo We out here downloading with -f mp3
  51. echo input tha URL
  52. set /p INPUTURL1=:
  53. echo %INPUTURL1% it is then
  54. if %QSEvV% equ 1 goto BGTyAu
  55. if %QSEvV% equ 0 choice /M "quick start?"
  56. if %errorlevel% equ 1 goto BGTyAu
  57. if %errorlevel% equ 2 goto Options
  58. echo unexpected choice...?
  59. goto Cont
  60.  
  61. :BGTyAu
  62. echo remember that we out here downloading with -f mp3
  63. echo now we shall begin
  64. yt-dlp.exe %NIER%-f mp3 --playlist-start %STARTNO% %INPUTURL1%
  65. if %errorlevel% equ 0 echo well done
  66. if NOT %errorlevel% equ 0 echo error level is %errorlevel%
  67. if %HQUEUE% equ 0 goto Cont
  68. if %HQUEUE% equ 1 goto OnceMoreTyAu
  69. echo CFORMAT unexpected variable...?
  70. goto Cont
  71.  
  72. :OnceMoreTyAu
  73. echo remember that we out here downloading with -f mp3
  74. echo here we go again
  75. yt-dlp.exe %NIER%-f mp3 --playlist-start %STARTNO% %INPUTURL2%
  76. if %errorlevel% equ 0 echo well done
  77. if NOT %errorlevel% equ 0 echo error level is %errorlevel%
  78. goto Cont
  79.  
  80. :ViSi
  81. set CFORMAT=2
  82. echo We out here downloading videos and converting it to mp3
  83. echo input tha URL
  84. set /p INPUTURL1=:
  85. echo %INPUTURL1% it is then
  86. if %QSEvV% equ 1 goto BGTyAu
  87. if %QSEvV% equ 0 choice /M "quick start?"
  88. if %errorlevel% equ 1 goto BGViSi
  89. if %errorlevel% equ 2 goto Options
  90. echo unexpected choice...?
  91. goto Cont
  92.  
  93. :BGViSi
  94. echo remember that we out here downloading videos and converting it to mp3
  95. echo now we shall begin
  96. yt-dlp.exe %NIER%-x --audio-format mp3 --playlist-start %STARTNO% %INPUTURL1% --extractor-args "youtube:player_client=default,-android_sdkless"
  97. if %errorlevel% equ 0 echo well done
  98. if NOT %errorlevel% equ 0 echo error level is %errorlevel%
  99. if %HQUEUE% equ 0 goto Cont
  100. if %HQUEUE% equ 1 goto OnceMoreViSi
  101. echo HQUEUE unexpected variable...?
  102. goto Cont
  103.  
  104. :OnceMoreViSi
  105. echo remember that we out here downloading videos and converting it to mp3
  106. echo here we go again
  107. yt-dlp.exe %NIER%-x --audio-format mp3 --playlist-start %STARTNO% %INPUTURL2%
  108. if %errorlevel% equ 0 echo well done
  109. if NOT %errorlevel% equ 0 echo error level is %errorlevel%
  110. goto Cont
  111.  
  112. :Thmb
  113. set CFORMAT=3
  114. echo We out here downloading the thumbnail
  115. echo input tha URL
  116. set /p INPUTURL1=:
  117. echo %INPUTURL1% it is then
  118. if %QSEvV% equ 1 goto BGTyAu
  119. if %QSEvV% equ 0 choice /M "quick start?"
  120. if %errorlevel% equ 1 goto BGThmb
  121. if %errorlevel% equ 2 goto Options
  122. echo unexpected choice...?
  123. goto Cont
  124.  
  125. :BGThmb
  126. echo remember that we out here downloading the thumbnail
  127. echo now we shall begin
  128. yt-dlp.exe %NIER%-x --skip-download --write-thumbnail --playlist-start %STARTNO% %INPUTURL1%
  129. if %errorlevel% equ 0 echo well done
  130. if NOT %errorlevel% equ 0 echo error level is %errorlevel%
  131. if %HQUEUE% equ 0 goto Cont
  132. if %HQUEUE% equ 1 goto OnceMoreThmb
  133. echo HQUEUE unexpected variable...?
  134. goto Cont
  135.  
  136. :OnceMoreThmb
  137. echo remember that we out here out here downloading the thumbnail
  138. echo here we go again
  139. yt-dlp.exe %NIER%-x --skip-download --write-thumbnail --playlist-start %STARTNO% %INPUTURL2%
  140. if %errorlevel% equ 0 echo well done
  141. if NOT %errorlevel% equ 0 echo error level is %errorlevel%
  142. goto Cont
  143.  
  144. :Options
  145. echo set the track number to start from (track 1 works too)
  146. set /p STARTNO=:
  147. if %STARTNO% equ 0 set STARTNO=1
  148. echo track %STARTNO% it is then
  149. choice /M "ignore errors?"
  150. if %errorlevel% equ 1 set NIER=-i
  151. if %errorlevel% equ 2 set NIER=
  152. choice /M "attach queue?"
  153. if %errorlevel% equ 1 set HQUEUE=1
  154. if %errorlevel% equ 2 set HQUEUE=0
  155. if %HQUEUE% equ 1 goto QueueSet
  156. :OptionsReturn
  157. echo returning: CFORMAT is %CFORMAT%
  158. if %CFORMAT% equ 1 goto BGTyAu
  159. if %CFORMAT% equ 2 goto BGViSi
  160. if %CFORMAT% equ 3 goto Thmb
  161. echo CFORMAT unexpected number...?
  162. goto Cont
  163. :QueueSet
  164. echo input tha second URL
  165. set /p INPUTURL2=:
  166. echo %INPUTURL2% it is then
  167. goto OptionsReturn
  168.  
  169. :Upda
  170. echo We out here updating the thing
  171. yt-dlp.exe -U
  172. echo regardless of the result, well done
  173. choice /m continue?
  174. if %errorlevel% equ 1 goto verystart
  175. if %errorlevel% equ 2 goto Exit
  176.  
  177. :Cont
  178. echo continue?
  179. choice /C YNC /N /M "Yes/No/Change"
  180. if %errorlevel% equ 1 goto rtbuffer
  181. if %errorlevel% equ 2 goto Exit
  182. if %errorlevel% equ 3 goto vsbuffer
  183.  
  184. :rtbuffer
  185. echo note that the options will be reset
  186. echo you gotta set it again if you want them
  187. echo returning: CFORMAT is %CFORMAT%
  188. if %CFORMAT% equ 1 goto TyAu
  189. if %CFORMAT% equ 2 goto ViSi
  190. if %CFORMAT% equ 3 goto Thmb
  191. echo CFORMAT unexpected number...?
  192. goto Cont
  193.  
  194. :vsbuffer
  195. echo note that the options will be reset
  196. echo you gotta set it again if you want them
  197. goto verystart
  198.  
  199. :Exit
  200. echo see you next time
  201. pause
  202. exit
Advertisement
Add Comment
Please, Sign In to add comment