Last active
April 17, 2021 14:56
-
-
Save thiagoeh/ed786d04a4c65a3e3daa43d6dead5535 to your computer and use it in GitHub Desktop.
Some useful youtube-dl commands
This file contains 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
pip3 install --user --upgrade youtube-dl | |
# Download a youtube playlist, only videos newer than 3 months | |
youtube-dl --dateafter now-3months https://www.youtube.com/playlist?list=PLI1_CQcV71RmeydXo-5K7DAxLsUX6SVhL | |
# Organizing downloaded files in folders | |
youtube-dl --output '%(playlist)s/%(playlist_index)s- %(title)s.%(ext)s'" | |
# Recquires ffmpeg to merge files (fails without error) | |
youtube-dl "https://www.youtube.com/watch?v=ha5lA4bHhMw" -f 'bestvideo[height<=480]+bestaudio' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment