Skip to content

Instantly share code, notes, and snippets.

@megahomyak
Created December 28, 2020 21:36
Show Gist options
  • Save megahomyak/d47858d6990a67b0eb33360e181d0f58 to your computer and use it in GitHub Desktop.
Save megahomyak/d47858d6990a67b0eb33360e181d0f58 to your computer and use it in GitHub Desktop.
A batch file that is just a shortcut for youtube-dl
@ECHO OFF
set /p url=url:
set /p audio_extracting=do extract audio or no (yes/no)?:
if "%audio_extracting%" == "yes" (
youtube-dl %url% -x --audio-format mp3
) else (
if "%audio_extracting%" == "no" (
youtube-dl %url%
) else (
echo choice isn't recognized
)
)
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment