Better score calculating

This commit is contained in:
Ruud
2012-03-06 23:37:55 +01:00
parent 6e8a1950cd
commit af46827eb2
4 changed files with 36 additions and 7 deletions
+7 -1
View File
@@ -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