Skip to content

Commit 33e6502

Browse files
committed
Reduce score by one point for each position on results
- prevents top result being lost amongst equally scored (I think plex does not honour the sort order when equally scored)
1 parent dc6b579 commit 33e6502

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Contents/Code/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ def search(self, results, media, lang, manual):
428428
self.Log('* Thumb is %s', thumb)
429429

430430
if score >= LCL_IGNORE_SCORE:
431+
score = score - (i - 1) # reduce score by one point for each position on results
431432
info.append({'id': itemId, 'title': title, 'year': year, 'date': date, 'score': score, 'thumb': thumb, 'artist' : author})
432433
else:
433434
self.Log('# Score is below ignore boundary (%s)... Skipping!', LCL_IGNORE_SCORE)

0 commit comments

Comments
 (0)