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. The TOTP secret dictionary URL is built in
as the default, and you can override it in configuration if that source is
blocked in your environment. The configured value takes priority when set.
Set it up via:
librelyrics config edit
Or set it directly:
librelyrics config set plugins.Spotify.sp_dc "YOUR_SP_DC_COOKIE"
To override the TOTP secret source, set:
librelyrics config set plugins.Spotify.totp_secret_cipher_dict_url "https://github.com/xyloflake/spot-secrets-go/blob/main/secrets/secretDict.json?raw=true"
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
Metadata
Release files for librelyrics-spotify 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| librelyrics_spotify-2.0.0.tar.gz | 29.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| librelyrics_spotify-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 55.6 kB
Release files / librelyrics_spotify-2.0.0.tar.gz
| Download URL | librelyrics_spotify-2.0.0.tar.gz |
|---|---|
| Size | 29.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e98d00ee10919733e3b8cf25d07d19e2d218f99e9d0bcce2cf93e80bfd96b4ed
|
|
BLAKE2b-256 checksum How to use checksums |
1162c5c66f0b2c687c1901327b1acc5ae51227b3f28b38ce1baaa0a399508772
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.
Transparency logRelease files / librelyrics_spotify-2.0.0-py3-none-any.whl
| Download URL | librelyrics_spotify-2.0.0-py3-none-any.whl |
|---|---|
| Size | 26.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ffc8f18ed1abc587296a79dd3f4bdf99c2cddbce030ab81ae1c268761fde1213
|
|
BLAKE2b-256 checksum How to use checksums |
e589322bb6559106efa7ac62d64f92468bd81e58a04fa131cce65cd0a587283b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.
Transparency log