Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use track's id of linked_from if exists #286

Merged
merged 1 commit into from
Nov 12, 2023

Conversation

aome510
Copy link
Owner

@aome510 aome510 commented Nov 12, 2023

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.

@aome510 aome510 merged commit 5b35df1 into master Nov 12, 2023
3 checks passed
@aome510 aome510 deleted the use-linked-from-id-for-tracks branch November 12, 2023 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant