feat: remove duplicate tracks, market availability, logging - #6
Conversation
…on for regional content
|
Filtering by URI doesn't always work since the same song could appear in multiple albums and have a different URI, such as: Could the deduplication use name+artist? |
|
we could use name+artist but I think the best way is to use the |
|
It doesn't appear that the isrc field is working. After a few runs, i saw the de-dupe messages, but got another that pulled in https://open.spotify.com/track/5uOOjYyNN0SWKXT4HDJJts and https://open.spotify.com/track/1MKONR4zoVOAoSZ7bLAmM1. I added some debug messages, and it looks like the isrc field is not set: /* Debug stuff */ output I haven't had time to look deeper than this. |
|
Ok, it was bugging me. I tested out adding |
Small edit to ensure that songs with the same uri can't be added to the playlist, changed the hard-coded market code to support different regiosn, moved logging utility in a specific function