Last active
April 11, 2020 16:01
-
-
Save kyktommy/55645b6fbefc5c4b4877d1c5fe432707 to your computer and use it in GitHub Desktop.
youtube-dl helper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# download as mp4, playlist also | |
function youtube-dl-mp4() { | |
youtube-dl -f "[height <=? 720][tbr>500]" --yes-playlist $1 | |
} | |
# download as mp3 | |
function youtube-dl-mp3() { | |
youtube-dl -x --audio-format mp3 --add-metadata $1 | |
} | |
# download subtitle en | |
function youtube-dl-sub() { | |
youtube-dl --write-sub --sub-lang en --skip-download $1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment