Browse Source

Remove favor, link to api key page

pull/4489/merge
Ruud 10 years ago
parent
commit
9b91d1d6c0
  1. 22
      couchpotato/core/media/_base/providers/torrent/hdaccess.py

22
couchpotato/core/media/_base/providers/torrent/hdaccess.py

@ -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',
@ -121,14 +109,6 @@ config = [{
'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,
'label': 'Internal Only', 'label': 'Internal Only',

Loading…
Cancel
Save