darklinkpower / PlayniteExtensionsCollection

Collection of extensions made for Playnite.
MIT License
331 stars 29 forks source link

Fixed 2 games both with empty collections resulting in 0 similarity #505

Open Jeshibu opened 9 months ago

Jeshibu commented 9 months ago

This fixes #469

I have verified that:

darklinkpower commented 9 months ago

Changes like this should be done in the control game matching algorithm and not to that method, since it calculates the Jaccard Similarity and this change would make it inaccurate. I'm also not sure if the best approach is to give a fixed number in such cases but I'm open to suggestions to improve the algorithm and if you've checked that it works fine.

Jeshibu commented 9 months ago

I've changed it so that it only uses fields that have values for at least one of the games. Fields with 0 (non-ignored) items in both lists now do not contribute to the similarity score, but also don't contribute to the minimum similarity score threshold.

I've also tweaked the minimum similarity threshold, but I want to put that in an advanced settings tab, along with the field weights, if you think this is the right way to go.

Jeshibu commented 8 months ago

Added settings. If this is about right I'll add localization too.