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