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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
10 additions and
0 deletions
-
couchpotato/core/media/_base/providers/torrent/passthepopcorn.py
|
|
@ -73,6 +73,8 @@ class Base(TorrentProvider): |
|
|
|
torrentdesc += ' Scene' |
|
|
|
if self.conf('prefer_scene'): |
|
|
|
torrentscore += 2000 |
|
|
|
if self.conf('no_scene'): |
|
|
|
torrentscore -= 2000 |
|
|
|
if 'RemasterTitle' in torrent and torrent['RemasterTitle']: |
|
|
|
torrentdesc += self.htmlToASCII(' %s' % torrent['RemasterTitle']) |
|
|
|
|
|
|
@ -258,6 +260,14 @@ config = [{ |
|
|
|
'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', |
|
|
|
'advanced': True, |
|
|
|
'type': 'bool', |
|
|
|