PTP extra scoring

This commit is contained in:
Ruud
2013-05-19 22:18:01 +02:00
parent 63dd7fa7c0
commit 40aeca0740
2 changed files with 2 additions and 16 deletions
@@ -62,14 +62,6 @@ config = [{
'default': 0,
'description': 'Require staff-approval for releases to be accepted.'
},
{
'name': 'require_bluray',
'advanced': True,
'type': 'bool',
'label': 'Require Blu-ray',
'default': 0,
'description': 'Require source to be Blu-ray for releases to be accepted.'
},
{
'name': 'extra_score',
'advanced': True,
@@ -108,13 +108,11 @@ class PassThePopcorn(TorrentProvider):
if 'GoldenPopcorn' in torrent and torrent['GoldenPopcorn']:
torrentdesc += ' HQ'
if self.conf('prefer_golden'):
torrentscore += 100
log.debug('Config: Prefer Golden Popcorn is active, awarding torrent 100 points')
torrentscore += 200
if 'Scene' in torrent and torrent['Scene']:
torrentdesc += ' Scene'
if self.conf('prefer_scene'):
torrentscore += 50
log.debug('Config: Prefer Scene release is active, awarding torrent 50 points')
if 'RemasterTitle' in torrent and torrent['RemasterTitle']:
torrentdesc += self.htmlToASCII(' %s' % torrent['RemasterTitle'])
@@ -179,13 +177,9 @@ class PassThePopcorn(TorrentProvider):
reqs = self.post_search_filters[quality].copy()
if self.conf('require_bluray'):
reqs['Source'] = ['Blu-ray']
log.debug('Config: Require Blu-ray source is activated')
if self.conf('require_approval'):
reqs['Checked'] = ['true']
log.debug('Config: Require staff-approval activated')
reqs['Checked'] = ['true']
for field, specs in reqs.items():
matches_one = False