From 98230dee321f15c1f12fcb06fb826a5f5d52c57a Mon Sep 17 00:00:00 2001 From: Ruud Date: Fri, 13 Apr 2012 23:03:12 +0200 Subject: [PATCH] Default newznab providers Default retention to 1000 days --- couchpotato/core/plugins/searcher/__init__.py | 2 +- couchpotato/core/providers/nzb/newznab/__init__.py | 6 +++--- couchpotato/core/providers/nzb/newznab/main.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/couchpotato/core/plugins/searcher/__init__.py b/couchpotato/core/plugins/searcher/__init__.py index 8e0f2cf..a3f8855 100644 --- a/couchpotato/core/plugins/searcher/__init__.py +++ b/couchpotato/core/plugins/searcher/__init__.py @@ -77,7 +77,7 @@ config = [{ 'options': [ { 'name': 'retention', - 'default': 350, + 'default': 1000, 'type': 'int', 'unit': 'days' }, diff --git a/couchpotato/core/providers/nzb/newznab/__init__.py b/couchpotato/core/providers/nzb/newznab/__init__.py index 212c984..b637ca8 100644 --- a/couchpotato/core/providers/nzb/newznab/__init__.py +++ b/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', diff --git a/couchpotato/core/providers/nzb/newznab/main.py b/couchpotato/core/providers/nzb/newznab/main.py index 38960cc..c3bb6b2 100644 --- a/couchpotato/core/providers/nzb/newznab/main.py +++ b/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 = {