Add score penalty for not having proper size information
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
from couchpotato.core.event import addEvent
|
||||
from couchpotato.core.logger import CPLog
|
||||
from couchpotato.core.plugins.base import Plugin
|
||||
from couchpotato.core.plugins.score.scores import nameScore, nameRatioScore
|
||||
from couchpotato.core.plugins.score.scores import nameScore, nameRatioScore, \
|
||||
sizeScore
|
||||
|
||||
log = CPLog(__name__)
|
||||
|
||||
@@ -19,4 +20,6 @@ class Score(Plugin):
|
||||
for movie_title in movie['library']['titles']:
|
||||
score += nameRatioScore(nzb['name'], movie_title['title'])
|
||||
|
||||
score += sizeScore(nzb['size'])
|
||||
|
||||
return score
|
||||
|
||||
Reference in New Issue
Block a user