Better score calculating
This commit is contained in:
@@ -3,7 +3,7 @@ from couchpotato.core.helpers.encoding import toUnicode
|
||||
from couchpotato.core.logger import CPLog
|
||||
from couchpotato.core.plugins.base import Plugin
|
||||
from couchpotato.core.plugins.score.scores import nameScore, nameRatioScore, \
|
||||
sizeScore
|
||||
sizeScore, providerScore, duplicateScore
|
||||
|
||||
log = CPLog(__name__)
|
||||
|
||||
@@ -31,4 +31,10 @@ class Score(Plugin):
|
||||
except:
|
||||
pass
|
||||
|
||||
# Provider score
|
||||
score += providerScore(nzb['provider'])
|
||||
|
||||
# Duplicates in name
|
||||
score += duplicateScore(nzb['name'], movie['library']['titles'][0]['title'])
|
||||
|
||||
return score
|
||||
|
||||
Reference in New Issue
Block a user