soulfx / gmusic-playlist

playlist scripts for gmusic
MIT License
158 stars 57 forks source link

Duplicate matches with detailed tracks #55

Open Damntry opened 7 years ago

Damntry commented 7 years ago

I found out that I got a handful of duplicate matches when uploading my local playlists with ImportList.py, but they were not really duplicates. It happened with titles in the same playlist which contained a word that existed in another title.

For example:

Track1 title: "Test" Track2 title: "Test for test"

One of them will be marked as duplicate even when they are explicitly different.

In ImportList.py -> search_for_track(details), around line 97, when it´s doing the detailed search it does a few String inside String comparisons. Im not sure why its needed there, and my Python knowledge is inexistent, but I changed them to a normal == String comparison and all my >50 playlist are working fine.

I dont know if this is the correct solution though since I havent really though of all the possible side effects, but I´ve already learned more Python that I ever wanted!

Regards

Suncatcher commented 7 years ago

Were you able to reveal the duplicates? As I stated in the other issue #11 I cannot see the dups in the report.

Damntry commented 7 years ago

I ended up having to debug the code manually, but I think I got the specific duplicates just using the provided debug mode (passing "-dDEBUG" as argument). It´s been some time and I can´t quite remember.