← 返回命令列表

Linux command

spotdl 命令

文本

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

常用示例

Download track

spotdl "[song name]"

Download from URL

spotdl [https://open.spotify.com/track/...]

Download playlist

spotdl [https://open.spotify.com/playlist/...]

Download album

spotdl [https://open.spotify.com/album/...]

Specify output format

spotdl --output "[{artist} - {title}]" [url]

Download as MP3

spotdl --format mp3 [url]

说明

spotdl downloads songs from Spotify by finding and downloading matching tracks from YouTube Music. It uses Spotify's metadata for tagging. The tool downloads audio, adds metadata and cover art, creating properly tagged music files from Spotify links.

参数

--output _template_
Output filename template.
--format _fmt_
Audio format (mp3, flac, ogg, m4a).
--bitrate _rate_
Audio bitrate.
-o _dir_, --output-dir _dir_
Output directory.
--threads _n_
Download threads.
--no-cache
Don't use cache.
--sponsor-block
Remove sponsor segments.
--sync _file_
Sync with saved file.
--cookie-file _file_
YouTube cookies file.

FAQ

What is the spotdl command used for?

spotdl downloads songs from Spotify by finding and downloading matching tracks from YouTube Music. It uses Spotify's metadata for tagging. The tool downloads audio, adds metadata and cover art, creating properly tagged music files from Spotify links.

How do I run a basic spotdl example?

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

What does --output _template_ do in spotdl?

Output filename template.