Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- SET DnBest=--no-check-certificate --prefer-insecure -f 22 --external-downloader aria2c --external-downloader-args "-x16 -s16 -k1M"
- SET Destination=""%USERPROFILE%"\Desktop\%%(title)s.%%(ext)s"
- if not -%1-==-- SET URL=%*
- if -%1-==-- goto fopNew
- :top
- CLS
- ECHO URL: %URL%
- ECHO ----------------------
- ECHO Available operations:
- ECHO ----------------------
- ECHO 1. Best of all
- ECHO 2. Check all formats available
- ECHO 3. New URI
- ECHO 4. Select specific format
- ECHO 5. Download autogenerated subtitles only
- ECHO 6. Download best audio only
- ECHO 7. Download video from any website
- ECHO 8. Exit
- SET /P operation=Which operation would you like to do?:
- if "%operation%"=="1" goto fop1
- if "%operation%"=="2" goto fopFormat
- if "%operation%"=="3" goto fopNew
- if "%operation%"=="4" goto fopSelect
- if "%operation%"=="5" goto fopSubtitles
- if "%operation%"=="6" goto fopAudio
- if "%operation%"=="7" goto fopAgnostic
- if "%operation%"=="8" goto fopQuit
- :fop1
- ECHO Best:
- youtube-dl %DnBest% -o %Destination% %URL%
- pause
- goto top
- :fopFormat
- ECHO List of all possible formats:
- youtube-dl -F %URL%
- pause
- goto top
- :fopSelect
- ECHO List of all possible formats:
- youtube-dl -F %URL%
- ECHO Enter number of desired format from all possible formats:
- SET /P formatF=:
- ECHO Download selected format:
- SET DnSelect=--no-check-certificate --prefer-insecure -f "%%formatF%%" --external-downloader aria2c --external-downloader-args "-x16 -s16 -k1M"
- youtube-dl %DnSelect% -o %Destination% %URL%
- pause
- goto top
- :fopNew
- SET /P URL=Enter the video URL:
- goto top
- :fopSubtitles
- SET selectSubtitles=--no-check-certificate --prefer-insecure --skip-download --write-auto-sub
- youtube-dl %selectSubtitles% -o %Destination% %URL%
- ECHO subtitles downloaded succesfully!
- pause
- goto top
- :fopAudio
- SET selectAudio=--no-check-certificate --prefer-insecure --extract-audio -f bestaudio[ext=webm] --postprocessor-args "-acodec libopus -b:a 64K" --external-downloader aria2c --external-downloader-args "-x16 -s16 -k1M"
- youtube-dl %selectAudio% -o %Destination% %URL%
- ECHO Audio downloaded succesfully!
- pause
- goto top
- :fopAgnostic
- SET setAria=--no-check-certificate --prefer-insecure --external-downloader aria2c --external-downloader-args "-x16 -s16 -k1M"
- youtube-dl %setAria% -o %Destination% %URL%
- ECHO Audio downloaded succesfully!
- pause
- goto top
- :fopQuit
- @echo off
Add Comment
Please, Sign In to add comment