Skip to content

Instantly share code, notes, and snippets.

@sillage
Last active November 8, 2024 14:24
Show Gist options
  • Save sillage/7f5eb395d07f03af0a6124fb4a861aa1 to your computer and use it in GitHub Desktop.
Save sillage/7f5eb395d07f03af0a6124fb4a861aa1 to your computer and use it in GitHub Desktop.
youtube-dl
# audio
youtube-dl -x --audio-format mp3 --audio-quality 0 --embed-thumbnail --add-metadata -o "%(title)s-%(id)s.%(ext)s" -- URL
yt-dlp -x --audio-format mp3 --audio-quality 0 --embed-thumbnail --add-metadata --metadata-from-title "%(artist)s - %(title)s" -o "%(artist)s - %(title)s - %(id)s.%(ext)s" -- URL
# video
youtube-dl -f best -o "%(title)s-%(id)s.%(ext)s" -- URL
yt-dlp -f best -o "%(title)s-%(id)s.%(ext)s" -- URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment