mirror of
https://github.com/libre-lyrics/librelyrics-spotify.git
synced 2026-04-26 09:15:56 +03:00
Spotify lyrics provider plugin for https://github.com/libre-lyrics/librelyrics.
| .github/workflows | ||
| .gitignore | ||
| __init__.py | ||
| api.py | ||
| LICENSE | ||
| module.py | ||
| pyproject.toml | ||
| README.md | ||
| totp.py | ||
librelyrics-spotify
Spotify lyrics provider plugin for LibreLyrics.
Features
- Fetch synced and unsynced lyrics from Spotify
- Support for track, album, and playlist URLs
- TOTP-based authentication with Spotify's internal API
Installation
pip install librelyrics-spotify
Configuration
Requires a Spotify sp_dc cookie. Set it up via:
librelyrics config edit
Or set it directly:
librelyrics config set plugins.Spotify.sp_dc "YOUR_SP_DC_COOKIE"
Getting your sp_dc cookie
- Open Spotify Web Player in your browser
- Log in to your account
- Open Developer Tools (F12) → Application → Cookies
- Find the
sp_dccookie and copy its value
Supported URLs
https://open.spotify.com/track/<id>https://open.spotify.com/album/<id>https://open.spotify.com/playlist/<id>
Usage
Once installed, the plugin is automatically discovered by LibreLyrics:
librelyrics "https://open.spotify.com/track/4PTG3Z6ehGkBFwjybzWkR8"
License
GPL-3.0-or-later