mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[PR #286] [MERGED] use track's id of linked_from if exists #1639
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#1639
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/aome510/spotify-player/pull/286
Author: @aome510
Created: 11/12/2023
Status: ✅ Merged
Merged: 11/12/2023
Merged by: @aome510
Base:
master← Head:use-linked-from-id-for-tracks📝 Commits (1)
85a203cuse track's id oflinked_fromif exists📊 Changes
1 file changed (+10 additions, -2 deletions)
View changed files
📝
spotify_player/src/state/model.rs(+10 -2)📄 Description
Resolves #285
Resolves #282
Spotify uses Track Relinking to re-link a track to a different version of the same track if it's unavailable in user's market while the other version is available.
Because of this relinking process, the linked track's ID is returned by the Spotify APIs instead of the original track's ID. This makes starting a playback in a context (e.g album, playlist, etc) with the linked track's ID failed because Spotify cannot find a track with that ID in the context.
This PR updates the track conversion code to use the original track's ID if it's relinked.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.