← 返回命令列表

Linux command

ytmdl 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Download song with metadata

ytmdl [song name]

Download from YouTube URL

ytmdl [https://youtube.com/watch?v=VIDEO_ID]

Specify output directory

ytmdl -o [~/Music] [song name]

Skip confirmation prompts

ytmdl --skip-meta [song name]

Download as MP3

ytmdl --format mp3 [song name]

说明

ytmdl is a tool to download music from YouTube and automatically add metadata (artist, album, cover art, lyrics) from sources like iTunes, Spotify, Deezer, and Gaana. It searches for songs, downloads them as audio, and enriches them with proper tags. The tool can accept either a song name (which it searches on YouTube) or a direct YouTube URL. It presents metadata options from various sources and lets you choose the best match. Configuration is stored in ~/.config/ytmdl/config for setting default behaviors, output directories, and preferred metadata sources.

参数

-o, --output-dir _DIR_
Set output directory for downloads
--format _FORMAT_
Audio format (mp3, m4a, opus, etc.)
--skip-meta
Skip quering metadata and downloading default one
-q, --quiet
Suppress output
--proxy _URL_
Use proxy for downloads
--level _LEVEL_
Log level (DEBUG, INFO, WARNING, ERROR)
--disable-metaadd
Disable adding metadata to the song
--trim, -t
Trim silence from start and end

FAQ

What is the ytmdl command used for?

ytmdl is a tool to download music from YouTube and automatically add metadata (artist, album, cover art, lyrics) from sources like iTunes, Spotify, Deezer, and Gaana. It searches for songs, downloads them as audio, and enriches them with proper tags. The tool can accept either a song name (which it searches on YouTube) or a direct YouTube URL. It presents metadata options from various sources and lets you choose the best match. Configuration is stored in ~/.config/ytmdl/config for setting default behaviors, output directories, and preferred metadata sources.

How do I run a basic ytmdl example?

Run `ytmdl [song name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -o, --output-dir _DIR_ do in ytmdl?

Set output directory for downloads