mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
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#1269
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?
📋 Pull Request Information
Original PR: https://github.com/librespot-org/librespot/pull/1183
Author: @kingosticks
Created: 6/29/2023
Status: ✅ Merged
Merged: 7/4/2023
Merged by: @roderickvd
Base:
dev← Head:fix-parse-expiry📝 Commits (3)
2625db3Parse expiry timestamp from spotifycdn.com CDN URLs (Fixes #1182)be8a7a9Ignore expiry timestamps we can't parse099aafdUse duration and remove empty strings📊 Changes
1 file changed (+66 additions, -22 deletions)
View changed files
📝
core/src/cdn_url.rs(+66 -22)📄 Description
The CDN URLs list now includes spotifycdn.com which has a different format. It was being erroneously interpreted using the scdn.co format and trying to parse non-digit characters as a timestamp.
It was trying to interpret the entire query string of "https://audio-gm-off.spotifycdn.com/audio/4712bc9e47f7feb4ee3450ef2bb545e1d83c3d54?Expires=1688165560
FullPathhmac=IIZA28qptl8cuGLq15-SjHKHtLoxzpy_6r_JpAU4MfM=" as a number.Maybe it would be better to match on the domain? Or at least catch the
parse()error and just pretend it's not expiring?🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.