Browse Source

Default newznab providers

Default retention to 1000 days
pull/110/head
Ruud 13 years ago
parent
commit
98230dee32
  1. 2
      couchpotato/core/plugins/searcher/__init__.py
  2. 6
      couchpotato/core/providers/nzb/newznab/__init__.py
  3. 4
      couchpotato/core/providers/nzb/newznab/main.py

2
couchpotato/core/plugins/searcher/__init__.py

@ -77,7 +77,7 @@ config = [{
'options': [ 'options': [
{ {
'name': 'retention', 'name': 'retention',
'default': 350, 'default': 1000,
'type': 'int', 'type': 'int',
'unit': 'days' 'unit': 'days'
}, },

6
couchpotato/core/providers/nzb/newznab/__init__.py

@ -19,16 +19,16 @@ config = [{
}, },
{ {
'name': 'use', 'name': 'use',
'default': '0' 'default': '0,0,0'
}, },
{ {
'name': 'host', 'name': 'host',
'default': 'nzb.su', 'default': 'nzb.su,dognzb.cr,beta.nzbs.org',
'description': 'The hostname of your newznab provider', 'description': 'The hostname of your newznab provider',
}, },
{ {
'name': 'api_key', 'name': 'api_key',
'default': '', 'default': ',,',
'label': 'Api Key', 'label': 'Api Key',
'description': 'Can be found on your profile page', 'description': 'Can be found on your profile page',
'type': 'combined', 'type': 'combined',

4
couchpotato/core/providers/nzb/newznab/main.py

@ -120,8 +120,8 @@ class Newznab(NZBProvider, RSS):
elif item.attrib.get('name') == 'usenetdate': elif item.attrib.get('name') == 'usenetdate':
date = item.attrib.get('value') date = item.attrib.get('value')
if date is '': log.info('Date not parsed properly or not available for %s: %s' % (host['host'], self.getTextElement(nzb, "title"))) if date is '': log.debug('Date not parsed properly or not available for %s: %s' % (host['host'], self.getTextElement(nzb, "title")))
if size is 0: log.info('Size not parsed properly or not available for %s: %s' % (host['host'], self.getTextElement(nzb, "title"))) if size is 0: log.debug('Size not parsed properly or not available for %s: %s' % (host['host'], self.getTextElement(nzb, "title")))
id = self.getTextElement(nzb, "guid").split('/')[-1:].pop() id = self.getTextElement(nzb, "guid").split('/')[-1:].pop()
new = { new = {

Loading…
Cancel
Save