3.4 KiB
Spotify setup
museater reads Spotify playlist metadata (never audio) and resolves each track to Qobuz. Matching uses ISRC first, then a strict artist/title/duration fallback. Ambiguous or missing matches are reported and skipped by default.
Status: PKCE, models, matching, and the import pipeline are unit-tested, but a live end-to-end Spotify run still requires your app/Client ID. Treat the Spotify provider as beta until that check is done.
Requirements
- A Spotify account.
- Spotify Premium on the app owner — Development Mode apps require it (Spotify's February 2026 change; new apps are limited to 5 users).
- A Spotify Developer app to get a Client ID.
- Authenticated Qobuz access in museater for the actual download.
Create the Spotify app
- Open https://developer.spotify.com/dashboard.
- Create an app (name/description can be anything).
- In the app settings, add a Redirect URI:
http://127.0.0.1/callback(recommended; museater adds a dynamic port), orhttp://127.0.0.1:8888/callbackif you prefer a fixed port.- Do not use
localhost— Spotify rejects it; use the literal127.0.0.1.
- Save, then copy the Client ID. The client secret is not needed: museater uses Authorization Code with PKCE.
If you registered a fixed port, pass the exact URI:
uv run museater spotify auth --client-id <id> \
--redirect-uri 'http://127.0.0.1:8888/callback'
Authenticate
Browser flow:
uv run museater spotify auth --client-id <client-id>
Headless / agent flow:
uv run museater --json spotify auth --client-id <client-id> --print-url
# open auth_url, then copy the full http://127.0.0.1:<port>/callback?code=... URL
uv run museater --json spotify auth --code '<redirect-url>'
Check:
uv run museater --json spotify auth --status
Tokens are stored in the OS keyring when available; otherwise in
~/.config/museater/credentials.json with mode 0600. MUSEATER_SPOTIFY_CLIENT_ID
and MUSEATER_SPOTIFY_REFRESH_TOKEN are honored for agents/headless setups.
Commands
uv run museater --json spotify playlists
uv run museater --json spotify playlist 'https://open.spotify.com/playlist/...'
# Match only, no downloads:
uv run museater --json spotify import '<playlist-url>' --dry-run
# Match + download the matched Qobuz tracks:
uv run museater spotify import '<playlist-url>' --out ~/Music/Museater
# Same, but route matched tracks into their Qobuz album folders:
uv run museater spotify import '<playlist-url>' --playlist-as-albums
Import output includes one item per Spotify track:
{"position":1,"status":"matched","score":1.0,"reason":"isrc",
"spotify":{"title":"...","artist":"..."},
"qobuz":{"id":"...","title":"..."}}
status is matched, ambiguous, or not_found. Only matched tracks are
downloaded. --refresh-matches ignores the cached matches.
Limitations
- Spotify's
/playlists/{id}/itemsendpoint is restricted to playlists you own or collaborate on. museater falls back to the deprecated/tracksendpoint; if Spotify still denies it, the playlist is reported as forbidden. - Local files, podcast episodes, and unavailable tracks are skipped.
- Spotify and Qobuz catalogs/regions differ; some tracks will be
not_foundor unavailable in Qobuz. - Spotify audio is never downloaded. The API is used only for playlist/track metadata.