From fe4e162c068b710acf00a8cadc5e98fe7b4ed9f7 Mon Sep 17 00:00:00 2001 From: Jamie Osborne Date: Thu, 21 Dec 2017 13:36:20 +0000 Subject: [PATCH] Fix search artist score overwriting title score - replace using simple average with equal weighting --- Contents/Code/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Contents/Code/__init__.py b/Contents/Code/__init__.py index 192371a..15ff064 100644 --- a/Contents/Code/__init__.py +++ b/Contents/Code/__init__.py @@ -423,7 +423,7 @@ def search(self, results, media, lang, manual): scorebase4 = author #self.Log('scorebase3: %s', scorebase3) #self.Log('scorebase4: %s', scorebase4) - score = INITIAL_SCORE - Util.LevenshteinDistance(scorebase3, scorebase4) + score = int(round((score + INITIAL_SCORE - Util.LevenshteinDistance(scorebase3, scorebase4)) /2)) self.Log('* Title is %s', title)