mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00:00
Fix "error trying to retrieve image" from TVDb due to attempts made when there is no image to fetch.
This commit is contained in:
parent
3682e004db
commit
b8c5eac61f
3 changed files with 6 additions and 2 deletions
|
@ -218,6 +218,7 @@
|
||||||
* Change image cache processing for browse Trakt page
|
* Change image cache processing for browse Trakt page
|
||||||
* Change logging for newznab response code 910 and add check for empty response data
|
* Change logging for newznab response code 910 and add check for empty response data
|
||||||
* Change improve reverse proxy web_root support
|
* Change improve reverse proxy web_root support
|
||||||
|
* Fix "error trying to retrieve image" from tvdb due to there is no image to fetch
|
||||||
|
|
||||||
|
|
||||||
### 0.11.16 (2016-10-16 17:30:00 UTC)
|
### 0.11.16 (2016-10-16 17:30:00 UTC)
|
||||||
|
|
|
@ -864,7 +864,7 @@ class Tvdb:
|
||||||
|
|
||||||
if None is not v:
|
if None is not v:
|
||||||
if 'filename' == k:
|
if 'filename' == k:
|
||||||
v = self.config['url_artworkPrefix'] % v
|
v = v and (self.config['url_artworkPrefix'] % v) or v
|
||||||
else:
|
else:
|
||||||
v = self._clean_data(v)
|
v = self._clean_data(v)
|
||||||
|
|
||||||
|
|
|
@ -99,8 +99,11 @@ class OmgwtfnzbsProvider(generic.NZBProvider):
|
||||||
data = self.get_url(url, timeout=90)
|
data = self.get_url(url, timeout=90)
|
||||||
if not data:
|
if not data:
|
||||||
return result
|
return result
|
||||||
|
if '<strong>Limit Reached</strong>' in data:
|
||||||
|
logger.log('Daily Nzb Download limit reached', logger.DEBUG)
|
||||||
|
return result
|
||||||
if '</nzb>' not in data or 'seem to be logged in' in 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)
|
logger.log('Failed nzb data response: %s' % data, logger.DEBUG)
|
||||||
return result
|
return result
|
||||||
result = classes.NZBDataSearchResult(episodes)
|
result = classes.NZBDataSearchResult(episodes)
|
||||||
result.extraInfo += [data]
|
result.extraInfo += [data]
|
||||||
|
|
Loading…
Reference in a new issue