Skip to main content

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"
  1. Open Spotify Web Player in your browser
  2. Log in to your account
  3. Open Developer Tools (F12) → Application → Cookies
  4. Find the sp_dc cookie 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)

Source distribution for librelyrics-spotify 2.0.0
File Size Uploaded
librelyrics_spotify-2.0.0.tar.gz 29.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for librelyrics-spotify 2.0.0
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page