Remove favor, link to api key page
This commit is contained in:
1 parent
d9c7a97604
commit
9b91d1d6c0
1 file changed
+1
-21
@@ -1,5 +1,4 @@
|
|||||||
import re
|
import re
|
||||||
import json
|
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
from couchpotato.core.helpers.variable import tryInt, getIdentifier
|
from couchpotato.core.helpers.variable import tryInt, getIdentifier
|
||||||
@@ -42,17 +41,6 @@ class Base(TorrentProvider):
|
|||||||
torrent_desc += '/ Internal'
|
torrent_desc += '/ Internal'
|
||||||
torrentscore += 200
|
torrentscore += 200
|
||||||
|
|
||||||
if resolution == '1080p':
|
|
||||||
torrentscore += 100
|
|
||||||
if encoding == 'x264' and self.conf('favor') in ['encode', 'all']:
|
|
||||||
torrentscore += 100
|
|
||||||
elif encoding == 'Encode' and self.conf('favor') in ['encode', 'all']:
|
|
||||||
torrentscore += 100
|
|
||||||
elif encoding == 'Remux' and self.conf('favor') in ['remux', 'all']:
|
|
||||||
torrentscore += 200
|
|
||||||
elif encoding == 'Bluray' and self.conf('favor') in ['bluray', 'all']:
|
|
||||||
torrentscore += 300
|
|
||||||
|
|
||||||
if seeders == 0:
|
if seeders == 0:
|
||||||
torrentscore = 0
|
torrentscore = 0
|
||||||
|
|
||||||
@@ -97,7 +85,7 @@ config = [{
|
|||||||
'name': 'apikey',
|
'name': 'apikey',
|
||||||
'default': '',
|
'default': '',
|
||||||
'label': 'API Key',
|
'label': 'API Key',
|
||||||
'description': 'Enter your site api key. This can be find in \'Edit My Profile\'->Security',
|
'description': 'Enter your site api key. This can be find on <a href="https://hdaccess.net/usercp.php?action=security">Profile Security</a>',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name': 'seed_ratio',
|
'name': 'seed_ratio',
|
||||||
@@ -120,14 +108,6 @@ config = [{
|
|||||||
'default': 1,
|
'default': 1,
|
||||||
'description': 'Favors internal releases over non-internal releases.',
|
'description': 'Favors internal releases over non-internal releases.',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
'name': 'favor',
|
|
||||||
'advanced': True,
|
|
||||||
'default': 'all',
|
|
||||||
'type': 'dropdown',
|
|
||||||
'values': [('Blurays & Encodes & Remuxes', 'all'), ('Blurays', 'bluray'), ('Encodes', 'encode'), ('Remuxes', 'remux'), ('None', 'none')],
|
|
||||||
'description': 'Give extra scoring to blurays(+300), remuxes(+200) or encodes(+100).',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
'name': 'internal_only',
|
'name': 'internal_only',
|
||||||
'advanced': True,
|
'advanced': True,
|
||||||
|
|||||||
Reference in new issue
Block a user