Skip to content

Commit fe4e162

Browse files
committed
Fix search artist score overwriting title score
- replace using simple average with equal weighting
1 parent 8f0a91a commit fe4e162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Contents/Code/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def search(self, results, media, lang, manual):
423423
scorebase4 = author
424424
#self.Log('scorebase3: %s', scorebase3)
425425
#self.Log('scorebase4: %s', scorebase4)
426-
score = INITIAL_SCORE - Util.LevenshteinDistance(scorebase3, scorebase4)
426+
score = int(round((score + INITIAL_SCORE - Util.LevenshteinDistance(scorebase3, scorebase4)) /2))
427427

428428

429429
self.Log('* Title is %s', title)

0 commit comments

Comments
 (0)