PTP extra scoring
This commit is contained in:
1 parent
63dd7fa7c0
commit
40aeca0740
2 files changed
+2
-16
No files matched your search
@@ -62,14 +62,6 @@ config = [{
|
|||||||
'default': 0,
|
'default': 0,
|
||||||
'description': 'Require staff-approval for releases to be accepted.'
|
'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',
|
'name': 'extra_score',
|
||||||
'advanced': True,
|
'advanced': True,
|
||||||
|
|||||||
@@ -108,13 +108,11 @@ class PassThePopcorn(TorrentProvider):
|
|||||||
if 'GoldenPopcorn' in torrent and torrent['GoldenPopcorn']:
|
if 'GoldenPopcorn' in torrent and torrent['GoldenPopcorn']:
|
||||||
torrentdesc += ' HQ'
|
torrentdesc += ' HQ'
|
||||||
if self.conf('prefer_golden'):
|
if self.conf('prefer_golden'):
|
||||||
torrentscore += 100
|
torrentscore += 200
|
||||||
log.debug('Config: Prefer Golden Popcorn is active, awarding torrent 100 points')
|
|
||||||
if 'Scene' in torrent and torrent['Scene']:
|
if 'Scene' in torrent and torrent['Scene']:
|
||||||
torrentdesc += ' Scene'
|
torrentdesc += ' Scene'
|
||||||
if self.conf('prefer_scene'):
|
if self.conf('prefer_scene'):
|
||||||
torrentscore += 50
|
torrentscore += 50
|
||||||
log.debug('Config: Prefer Scene release is active, awarding torrent 50 points')
|
|
||||||
if 'RemasterTitle' in torrent and torrent['RemasterTitle']:
|
if 'RemasterTitle' in torrent and torrent['RemasterTitle']:
|
||||||
torrentdesc += self.htmlToASCII(' %s' % torrent['RemasterTitle'])
|
torrentdesc += self.htmlToASCII(' %s' % torrent['RemasterTitle'])
|
||||||
|
|
||||||
@@ -179,13 +177,9 @@ class PassThePopcorn(TorrentProvider):
|
|||||||
|
|
||||||
reqs = self.post_search_filters[quality].copy()
|
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'):
|
if self.conf('require_approval'):
|
||||||
reqs['Checked'] = ['true']
|
|
||||||
log.debug('Config: Require staff-approval activated')
|
log.debug('Config: Require staff-approval activated')
|
||||||
|
reqs['Checked'] = ['true']
|
||||||
|
|
||||||
for field, specs in reqs.items():
|
for field, specs in reqs.items():
|
||||||
matches_one = False
|
matches_one = False
|
||||||
|
|||||||
Reference in new issue
Block a user