[GH-ISSUE #1522] unable to fetch songs at least in germany - filter CDN urls by hostnames that are resolvable by DNS #692

Closed
opened 2026-02-27 19:31:58 +03:00 by kerem · 2 comments
Owner

Originally created by @jeschu on GitHub (Aug 1, 2025).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1522

Currently spotify is sending CDN urls for fetching songs where at least one urls hostname is not resolvable by DNS.

To handle this broken configuration on side of spotify, I suggest to filter the CDN urls by hostnames that are resolvable here:
github.com/librespot-org/librespot@be37402421/core/src/cdn_url.rs (L87)

As I am a Kotlin/Java developer I am not able to fix this. But perhaps out there is a experienced rust developer who could take a look at it. Perhaps there is a better place in the code to filter the CDN urls, as at the linke line of code the goal is to check if the CDN urls contain an expiry timestamp and to check the url is not already expired.

Kind regards,

Jens

Originally created by @jeschu on GitHub (Aug 1, 2025). Original GitHub issue: https://github.com/librespot-org/librespot/issues/1522 Currently spotify is sending CDN urls for fetching songs where at least one urls hostname is not resolvable by DNS. To handle this broken configuration on side of spotify, I suggest to filter the CDN urls by hostnames that are resolvable here: https://github.com/librespot-org/librespot/blob/be37402421167ec3721aa7f6fd1103851475517b/core/src/cdn_url.rs#L87 As I am a Kotlin/Java developer I am not able to fix this. But perhaps out there is a experienced rust developer who could take a look at it. Perhaps there is a better place in the code to filter the CDN urls, as at the linke line of code the goal is to check if the CDN urls contain an expiry timestamp and to check the url is not already expired. Kind regards, Jens
kerem 2026-02-27 19:31:58 +03:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@kingosticks commented on GitHub (Aug 1, 2025):

duplicate of https://github.com/librespot-org/librespot/issues/1521

<!-- gh-comment-id:3143523548 --> @kingosticks commented on GitHub (Aug 1, 2025): duplicate of https://github.com/librespot-org/librespot/issues/1521
Author
Owner

@jeschu commented on GitHub (Aug 1, 2025):

I added a comment on #1521. If my suggestions there are implemented this ticket in deed is a duplicate.

<!-- gh-comment-id:3144104161 --> @jeschu commented on GitHub (Aug 1, 2025): I added a [comment on #1521](https://github.com/librespot-org/librespot/issues/1521#issuecomment-3144100639). If my suggestions there are implemented this ticket in deed is a duplicate.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#692
No description provided.