Browse Source

Merge pull request #7235 from libussa/feature/searcher/ptpnoscene

Add an option to reject scene releases when using PTP as a searcher
pull/7231/head
Ruud Burger 8 years ago
committed by GitHub
parent
commit
cdebfcc1ef
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      couchpotato/core/media/_base/providers/torrent/passthepopcorn.py

10
couchpotato/core/media/_base/providers/torrent/passthepopcorn.py

@ -73,6 +73,8 @@ class Base(TorrentProvider):
torrentdesc += ' Scene' torrentdesc += ' Scene'
if self.conf('prefer_scene'): if self.conf('prefer_scene'):
torrentscore += 2000 torrentscore += 2000
if self.conf('no_scene'):
torrentscore -= 2000
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'])
@ -258,6 +260,14 @@ config = [{
'description': 'Favors scene-releases over non-scene releases.' 'description': 'Favors scene-releases over non-scene releases.'
}, },
{ {
'name': 'no_scene',
'advanced': True,
'type': 'bool',
'label': 'Reject scene',
'default': 0,
'description': 'Reject scene-releases over non-scene releases.'
},
{
'name': 'require_approval', 'name': 'require_approval',
'advanced': True, 'advanced': True,
'type': 'bool', 'type': 'bool',

Loading…
Cancel
Save