Added in error 542 as requested

This commit is contained in:
echel0n 2014-04-28 11:46:35 -07:00
parent 160b4bc4cc
commit 0ec4be65da
2 changed files with 2 additions and 1 deletions

View file

@ -60,6 +60,7 @@ http_error_code = {
503: 'Service Unavailable', 503: 'Service Unavailable',
504: 'Gateway Timeout', 504: 'Gateway Timeout',
505: 'HTTP Version Not Supported', 505: 'HTTP Version Not Supported',
542: 'Request to host timedout waiting for reply back'
} }
default_host = {'utorrent': 'http://localhost:8000', default_host = {'utorrent': 'http://localhost:8000',

View file

@ -140,7 +140,7 @@ class GenericProvider:
logger.log(u"Newznab ERROR:[%s] CODE:[%s]" % (f.feed['error']['description'], f.feed['error']['code']), logger.DEBUG) logger.log(u"Newznab ERROR:[%s] CODE:[%s]" % (f.feed['error']['description'], f.feed['error']['code']), logger.DEBUG)
return None return None
elif not f.entries: elif not f.entries:
logger.log(u"Error loading RSS feed items for " + self.name + " using URL: " + url, logger.ERROR) logger.log(u"No items found on " + self.name + " using URL: " + url, logger.WARNING)
return None return None
return f return f