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': [
{
'name': 'retention',
'default': 350,
'default': 1000,
'type': 'int',
'unit': 'days'
},

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

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

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

@ -120,8 +120,8 @@ class Newznab(NZBProvider, RSS):
elif item.attrib.get('name') == 'usenetdate':
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 size is 0: log.info('Size 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.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()
new = {

Loading…
Cancel
Save