Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- title YTDLP: master helper (temporeary)
- echo ....:-.--:..-:.--.:---:-.:..:.-
- echo a master helper at last
- echo ---
- set QSEvV=0
- :verystart
- set NIER=
- set HQUEUE=0
- set CFORMAT=0
- set STARTNO=1
- set INPUTURL1=
- set INPUTURL2=
- echo choose the format:
- echo 1: Typical Audio
- echo 2: Video Sites
- echo 3: Thumbnail
- echo 4: Quickstart everything
- echo 5: Update
- echo 6: Exit
- choice /C 123456 /N /M "-> "
- if %errorlevel% equ 1 goto TyAu
- if %errorlevel% equ 2 goto ViSi
- if %errorlevel% equ 3 goto Thmb
- if %errorlevel% equ 4 goto QSEv
- if %errorlevel% equ 5 goto Upda
- if %errorlevel% equ 6 goto Exit
- echo unexpected choice...?
- goto Cont
- :QSEv
- echo Quickstart everything...
- if %QSEvV% equ 0 goto TrueQSEv
- if %QSEvV% equ 1 goto FalseQSEv
- :TrueQSEv
- if %QSEvV% equ 0 set QSEvV=1
- echo Set to %QSEvV%!
- goto verystart
- :FalseQSEv
- if %QSEvV% equ 1 set QSEvV=0
- echo Set to %QSEvV%!
- goto verystart
- :TyAu
- set CFORMAT=1
- echo We out here downloading with -f mp3
- echo input tha URL
- set /p INPUTURL1=:
- echo %INPUTURL1% it is then
- if %QSEvV% equ 1 goto BGTyAu
- if %QSEvV% equ 0 choice /M "quick start?"
- if %errorlevel% equ 1 goto BGTyAu
- if %errorlevel% equ 2 goto Options
- echo unexpected choice...?
- goto Cont
- :BGTyAu
- echo remember that we out here downloading with -f mp3
- echo now we shall begin
- yt-dlp.exe %NIER%-f mp3 --playlist-start %STARTNO% %INPUTURL1%
- if %errorlevel% equ 0 echo well done
- if NOT %errorlevel% equ 0 echo error level is %errorlevel%
- if %HQUEUE% equ 0 goto Cont
- if %HQUEUE% equ 1 goto OnceMoreTyAu
- echo CFORMAT unexpected variable...?
- goto Cont
- :OnceMoreTyAu
- echo remember that we out here downloading with -f mp3
- echo here we go again
- yt-dlp.exe %NIER%-f mp3 --playlist-start %STARTNO% %INPUTURL2%
- if %errorlevel% equ 0 echo well done
- if NOT %errorlevel% equ 0 echo error level is %errorlevel%
- goto Cont
- :ViSi
- set CFORMAT=2
- echo We out here downloading videos and converting it to mp3
- echo input tha URL
- set /p INPUTURL1=:
- echo %INPUTURL1% it is then
- if %QSEvV% equ 1 goto BGTyAu
- if %QSEvV% equ 0 choice /M "quick start?"
- if %errorlevel% equ 1 goto BGViSi
- if %errorlevel% equ 2 goto Options
- echo unexpected choice...?
- goto Cont
- :BGViSi
- echo remember that we out here downloading videos and converting it to mp3
- echo now we shall begin
- yt-dlp.exe %NIER%-x --audio-format mp3 --playlist-start %STARTNO% %INPUTURL1% --extractor-args "youtube:player_client=default,-android_sdkless"
- if %errorlevel% equ 0 echo well done
- if NOT %errorlevel% equ 0 echo error level is %errorlevel%
- if %HQUEUE% equ 0 goto Cont
- if %HQUEUE% equ 1 goto OnceMoreViSi
- echo HQUEUE unexpected variable...?
- goto Cont
- :OnceMoreViSi
- echo remember that we out here downloading videos and converting it to mp3
- echo here we go again
- yt-dlp.exe %NIER%-x --audio-format mp3 --playlist-start %STARTNO% %INPUTURL2%
- if %errorlevel% equ 0 echo well done
- if NOT %errorlevel% equ 0 echo error level is %errorlevel%
- goto Cont
- :Thmb
- set CFORMAT=3
- echo We out here downloading the thumbnail
- echo input tha URL
- set /p INPUTURL1=:
- echo %INPUTURL1% it is then
- if %QSEvV% equ 1 goto BGTyAu
- if %QSEvV% equ 0 choice /M "quick start?"
- if %errorlevel% equ 1 goto BGThmb
- if %errorlevel% equ 2 goto Options
- echo unexpected choice...?
- goto Cont
- :BGThmb
- echo remember that we out here downloading the thumbnail
- echo now we shall begin
- yt-dlp.exe %NIER%-x --skip-download --write-thumbnail --playlist-start %STARTNO% %INPUTURL1%
- if %errorlevel% equ 0 echo well done
- if NOT %errorlevel% equ 0 echo error level is %errorlevel%
- if %HQUEUE% equ 0 goto Cont
- if %HQUEUE% equ 1 goto OnceMoreThmb
- echo HQUEUE unexpected variable...?
- goto Cont
- :OnceMoreThmb
- echo remember that we out here out here downloading the thumbnail
- echo here we go again
- yt-dlp.exe %NIER%-x --skip-download --write-thumbnail --playlist-start %STARTNO% %INPUTURL2%
- if %errorlevel% equ 0 echo well done
- if NOT %errorlevel% equ 0 echo error level is %errorlevel%
- goto Cont
- :Options
- echo set the track number to start from (track 1 works too)
- set /p STARTNO=:
- if %STARTNO% equ 0 set STARTNO=1
- echo track %STARTNO% it is then
- choice /M "ignore errors?"
- if %errorlevel% equ 1 set NIER=-i
- if %errorlevel% equ 2 set NIER=
- choice /M "attach queue?"
- if %errorlevel% equ 1 set HQUEUE=1
- if %errorlevel% equ 2 set HQUEUE=0
- if %HQUEUE% equ 1 goto QueueSet
- :OptionsReturn
- echo returning: CFORMAT is %CFORMAT%
- if %CFORMAT% equ 1 goto BGTyAu
- if %CFORMAT% equ 2 goto BGViSi
- if %CFORMAT% equ 3 goto Thmb
- echo CFORMAT unexpected number...?
- goto Cont
- :QueueSet
- echo input tha second URL
- set /p INPUTURL2=:
- echo %INPUTURL2% it is then
- goto OptionsReturn
- :Upda
- echo We out here updating the thing
- yt-dlp.exe -U
- echo regardless of the result, well done
- choice /m continue?
- if %errorlevel% equ 1 goto verystart
- if %errorlevel% equ 2 goto Exit
- :Cont
- echo continue?
- choice /C YNC /N /M "Yes/No/Change"
- if %errorlevel% equ 1 goto rtbuffer
- if %errorlevel% equ 2 goto Exit
- if %errorlevel% equ 3 goto vsbuffer
- :rtbuffer
- echo note that the options will be reset
- echo you gotta set it again if you want them
- echo returning: CFORMAT is %CFORMAT%
- if %CFORMAT% equ 1 goto TyAu
- if %CFORMAT% equ 2 goto ViSi
- if %CFORMAT% equ 3 goto Thmb
- echo CFORMAT unexpected number...?
- goto Cont
- :vsbuffer
- echo note that the options will be reset
- echo you gotta set it again if you want them
- goto verystart
- :Exit
- echo see you next time
- pause
- exit
Advertisement
Add Comment
Please, Sign In to add comment