Commit 5b35df1
authored
use track's id of
Resolves #285
Resolves #282
Spotify uses [Track Relinking](https://developer.spotify.com/documentation/web-api/concepts/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.linked_from if exists (#286)1 parent b3b0271 commit 5b35df1
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
257 | 261 | | |
258 | | - | |
| 262 | + | |
259 | 263 | | |
260 | 264 | | |
261 | 265 | | |
| |||
271 | 275 | | |
272 | 276 | | |
273 | 277 | | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
274 | 282 | | |
275 | | - | |
| 283 | + | |
276 | 284 | | |
277 | 285 | | |
278 | 286 | | |
| |||
0 commit comments