gmusic-playlist icon indicating copy to clipboard operation
gmusic-playlist copied to clipboard

Duplicate matches with detailed tracks

Open Damntry opened this issue 7 years ago • 2 comments

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

Damntry avatar Mar 06 '17 06:03 Damntry

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

Suncatcher avatar Sep 01 '17 12:09 Suncatcher

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.

Damntry avatar Oct 08 '17 18:10 Damntry