mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Change give OMGWTFNZBS provider more time to respond.
This commit is contained in:
parent
3278c29cc6
commit
4be2558e81
2 changed files with 9 additions and 7 deletions
|
@ -108,6 +108,7 @@
|
|||
* Fix issue on Add Existing Shows page where shows were listed that should not have been
|
||||
* Change get_size helper to also handle files
|
||||
* Change improve handling of a bad email notify setting
|
||||
* Change give OMGWTFNZBS provider more time to respond
|
||||
|
||||
|
||||
### 0.10.0 (2015-08-06 11:05:00 UTC)
|
||||
|
|
|
@ -97,13 +97,14 @@ class OmgwtfnzbsProvider(generic.NZBProvider):
|
|||
|
||||
result = None
|
||||
if url and False is self._init_api():
|
||||
data = self.get_url(url)
|
||||
if data:
|
||||
if '</nzb>' not in data or 'seem to be logged in' in data:
|
||||
logger.log(u'Failed nzb data response: %s' % data, logger.DEBUG)
|
||||
return result
|
||||
result = classes.NZBDataSearchResult(episodes)
|
||||
result.extraInfo += [data]
|
||||
data = self.get_url(url, timeout=90)
|
||||
if not data:
|
||||
return result
|
||||
if '</nzb>' not in data or 'seem to be logged in' in data:
|
||||
logger.log(u'Failed nzb data response: %s' % data, logger.DEBUG)
|
||||
return result
|
||||
result = classes.NZBDataSearchResult(episodes)
|
||||
result.extraInfo += [data]
|
||||
|
||||
if None is result:
|
||||
result = classes.NZBSearchResult(episodes)
|
||||
|
|
Loading…
Reference in a new issue