HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

ytmdl — Download songs from YouTube and automatically add metadata. Fetch song information (artist, album, c

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandfromandsongsclidownloadyoutubeytmdl

Problem

How to use the ytmdl command: Download songs from YouTube and automatically add metadata. Fetch song information (artist, album, cover art) from iTunes, Spotify, and other sources. More information: <https://github.com/deepjyoti30/ytmdl#usage>.

Solution

ytmdl — Download songs from YouTube and automatically add metadata. Fetch song information (artist, album, cover art) from iTunes, Spotify, and other sources. More information: <https://github.com/deepjyoti30/ytmdl#usage>.

Download a song by name (with interactive selection):
ytmdl {{song_name}}


Download the first result without prompting:
ytmdl {{[-q|--quiet]}} {{song_name}}


Download a song to a specific directory:
ytmdl {{[-o|--output-dir]}} {{path/to/directory}} {{song_name}}


Download a song from a YouTube URL:
ytmdl --url https://www.youtube.com/watch?v={{oHg5SJYRHA0}}


Download a song in a specific format (mp3, m4a, or opus):
ytmdl --format {{mp3|m4a|opus}} {{song_name}}


Download a song with artist and album information:
ytmdl --artist {{artist_name}} --album {{album_name}} {{song_name}}


Download a list of songs from a text file:
ytmdl --list {{path/to/list.txt}}


Display help:
ytmdl {{[-h|--help]}}

Code Snippets

Download a song by name (with interactive selection)

ytmdl {{song_name}}

Download the first result without prompting

ytmdl {{[-q|--quiet]}} {{song_name}}

Download a song to a specific directory

ytmdl {{[-o|--output-dir]}} {{path/to/directory}} {{song_name}}

Download a song from a YouTube URL

ytmdl --url https://www.youtube.com/watch?v={{oHg5SJYRHA0}}

Download a song in a specific format (mp3, m4a, or opus)

ytmdl --format {{mp3|m4a|opus}} {{song_name}}

Context

tldr-pages: common/ytmdl

Revisions (0)

No revisions yet.