plamere / OrganizeYourMusic

Organize your saved music on Spotify
242 stars 40 forks source link

Track IDs differ between source and generated playlist #7

Open jkroes opened 4 years ago

jkroes commented 4 years ago

Real world example. I have a playlist of 7370 tracks. I generate a playlist from this with 1387 tracks. I add the tracks from the generated playlist to the source playlist, skipping duplicates. Now it has 7929 tracks. A reasonable expectation is that the source playlist should instead have its original 7370 tracks, because all the tracks added back should be duplicates. Why are the tracks in the generated playlist not duplicates? How does the Spotify API determine duplicates anyway? I wrote a script to remove tracks from one playlist in another playlist. It relies on track ID. It removes all of the tracks I added in this example. This suggests that Organize Your Music isn't preserving track ID somehow, which seriously hinders using it in combination with other API-based applications.