mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #1316] AudioFiles not available for some tracks #598
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#598
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 @x528491x on GitHub (Aug 28, 2024).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1316
Steps to reproduce the behavior:
Use the track 4LRPiXqCikLlN15c3yImP7 as input
@x528491x commented on GitHub (Aug 28, 2024):
The audiofiles are available for the alternative track listed in the response.
Is this a general thing for Spotify - having to query alternative tracks?
It must also be noted that when the alternative track is queried, it does not list the original queried track as an alternative.
So what must be done in case Spotify had not grouped alternative tracks? How does one get the audiofiles then?
@kingosticks commented on GitHub (Aug 28, 2024):
They will always provide alternate tracks if required. Why would you need a way to access the "original" track that you can't play?
Have you read https://developer.spotify.com/documentation/web-api/concepts/track-relinking ?
The general Spotify principles explained in their officla docs are often relevant to working with librespot.
@x528491x commented on GitHub (Aug 28, 2024):
I'll close this issue, but "always provide alternative tracks if required".
Does that mean that if the track is found to be playable, the alternative track would automatically be empty,
Or does the developer need to check if the track is unplayable and then loop over the alternative tracks listed if any.
@kingosticks commented on GitHub (Aug 28, 2024):
I don't remember. But I recall they provide some field to describe the availability.
Look how this is done at
github.com/librespot-org/librespot@2ea7436e60/playback/src/player.rs (L881)?@x528491x commented on GitHub (Aug 28, 2024):
Thanks. That helped. Closing now.