gadgetmies / fomoplayer

Music Discovery App
5 stars 1 forks source link

Fix Spotify store track (and preview) duplication #55

Open gadgetmies opened 2 years ago

gadgetmies commented 2 years ago

If a track is released multiple times, it seems the api will return multiple previews. Also it seems like Spotify might be changing the preview url for the tracks.

select json_agg(storetrack_id), json_agg(storetrack_preview_url), json_agg(storetrack_url) from store__track_preview natural join storetrack where track_id = 59856;