Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

"Get Recently Played Tracks" returns different version of the song I actually played

Solved!

"Get Recently Played Tracks" returns different version of the song I actually played

I have a playlist that I adjust regularly to remove songs that I already listened to recently (using the "Get Recently Played Tracks" API).

The playlist contains this song https://open.spotify.com/track/26QxDu518aR3rkHucaqwzM which never gets removed.

I checked why, and it turns out that when playing that song, the "Get Recently Played Tracks" API claims that I listed to this version of that same song: https://open.spotify.com/track/2HEgBBls7l0smWTxPx0MtZ

 

I guess this is a bug? Could it be fixed?

Thanks!

Reply

Accepted Solutions
Marked as solution

Hi @EchoExplorer 

 

I think this has something to do with Track Relinking. You can read about it at this page.

 

I hope this clarifies things.

 

Cheers!

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

View solution in original post

4 Replies
Marked as solution

Hi @EchoExplorer 

 

I think this has something to do with Track Relinking. You can read about it at this page.

 

I hope this clarifies things.

 

Cheers!

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Thank you @ximzend.

I did an API request of the song in question and you are fully right.
From the API reply I can see the song in my playlist is for the Japan market, and it is redirecting to that other version of the song.

It is unfortunate that the result is that I have songs that stay on my playlist because technically speaking, they never get played (the same song but with a different ID is played). After a while I get bored with hearing the same song again and again.

Not sure about an elegant solution that does not involve having an automation do API request for all the songs in my playlist and then replacing the ones that get redirected.

Hi @EchoExplorer 

 

Sadly I don't have a quick fix.

I sometimes write code in Python using the module Spotipy to automate things. You can find it here. You have to use code from the example with user authentication. Else you won't be able to save the playlist.

 

Because the Spotify Web API returns JSON, this Formatter & Validator could be a helpful tool to explore the data.

 

I hope this helps a bit. If you have any questions, feel free to ask.

 

Cheers!

 

edit: fixed typos

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

OK thanks Ximzend!

I wrote the code in Node Red to get the track info for all tracks in my playlist, then get from the reply the corrected track URI's and then refill the playlist with the corrected URI's.

Now all seems to be working.

Suggested posts