mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 00:05:55 +03:00
[GH-ISSUE #1522] unable to fetch songs at least in germany - filter CDN urls by hostnames that are resolvable by DNS #692
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#692
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@kingosticks commented on GitHub (Aug 1, 2025):
duplicate of https://github.com/librespot-org/librespot/issues/1521
@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.