Skip to content

Fix Spotify playback failing on broken Spotify CDN URLs#4398

Merged
marcelveldt merged 1 commit into
devfrom
update-librespot-cdn-fix
Jun 22, 2026
Merged

Fix Spotify playback failing on broken Spotify CDN URLs#4398
marcelveldt merged 1 commit into
devfrom
update-librespot-cdn-fix

Conversation

@marcelveldt

@marcelveldt marcelveldt commented Jun 22, 2026

Copy link
Copy Markdown
Member

What does this implement/fix?

Spotify recently started handing some accounts a broken CDN host as the top option (e.g. audio-cf-del-874.spotifycdn.com), which returns HTTP 530. The bundled librespot accepted the first reachable CDN URL and only failed afterwards if it wasn't 206, instead of trying the next URL — so every track failed to load (Unable to load encrypted file: StatusCode(530)) and playback errored with "No playable item found".

This rebuilds the vendored librespot binaries from our fork with the upstream CDN-fallback fix: a CDN URL is now accepted only when it returns 206 Partial Content, otherwise librespot logs a warning and falls back to the next URL.

  • Cherry-picked the CDN-fallback fix (upstream librespot PR #1722) onto music-assistant/librespot@mass and rebuilt the binaries.
  • Binary update only — no server code changes.

Related issue (if applicable):

Types of changes

  • Bugfix (non-breaking change which fixes an issue) — bugfix
  • New feature (non-breaking change which adds functionality) — new-feature
  • Enhancement to an existing feature — enhancement
  • New music/player/metadata/plugin provider — new-provider
  • Breaking change (fix or feature that would cause existing functionality to not work as expected) — breaking-change
  • Refactor (no behaviour change) — refactor
  • Documentation only — documentation
  • Maintenance / chore — maintenance
  • CI / workflow change — ci
  • Dependencies bump — dependencies

Checklist

  • The code change is tested and works locally.
  • pre-commit run --all-files passes.
  • pytest passes, and tests have been added/updated under tests/ where applicable.
  • For changes to shared models, the companion PR in music-assistant/models is linked.
  • For changes affecting the UI, the companion PR in music-assistant/frontend is linked.
  • I have read and complied with the project's AI Policy for any AI-assisted contributions.
  • I have raised a PR against the documentation repository targeting the main or beta branch as appropriate.

Copilot AI review requested due to automatic review settings June 22, 2026 11:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

@marcelveldt marcelveldt merged commit 5bbeb58 into dev Jun 22, 2026
19 of 20 checks passed
@marcelveldt marcelveldt deleted the update-librespot-cdn-fix branch June 22, 2026 12:12
@marcelveldt marcelveldt changed the title Fix Spotify playback failing on broken Spotify CDN URLs (rebuild librespot) Fix Spotify playback failing on broken Spotify CDN URLs Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants