Default newznab providers
Default retention to 1000 days
This commit is contained in:
@@ -77,7 +77,7 @@ config = [{
|
||||
'options': [
|
||||
{
|
||||
'name': 'retention',
|
||||
'default': 350,
|
||||
'default': 1000,
|
||||
'type': 'int',
|
||||
'unit': 'days'
|
||||
},
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user