mirror of
https://github.com/Aran404/SpotAPI.git
synced 2026-04-25 16:55:50 +03:00
[GH-ISSUE #53] get_sha256_hash broken due to Spotify CDN URL format change (404 errors) #31
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SpotAPI#31
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 @simonebartoli on GitHub (Dec 14, 2025).
Original GitHub issue: https://github.com/Aran404/SpotAPI/issues/53
The function
get_sha256_hashinspotapi/client.pyis currently broken. All attempts to retrieve query hashes (artists, playlists, tracks) fail with HTTP 404.get_sha256_hashalways fails, making artist/playlist/song queries unusable.Root cause:
Spotify changed the structure of their CDN URLs by inverting the order of
str_mappingandhash_mappingused to build the web-player asset paths.Current code (broken):
Fixed code:
@Aran404 commented on GitHub (Dec 14, 2025):
Thank you very much, haven't looked at this in a while