Fix logging if fanart.tv lookup fails
This commit is contained in:
parent
057921b05e
commit
e96df700c1
1 changed files with 7 additions and 5 deletions
|
@ -222,12 +222,14 @@ class Artwork(object):
|
||||||
else:
|
else:
|
||||||
# Not supported artwork
|
# Not supported artwork
|
||||||
return artworks
|
return artworks
|
||||||
data = DU().downloadUrl(url, authenticate=False, timeout=15)
|
data = DU().downloadUrl(url,
|
||||||
try:
|
authenticate=False,
|
||||||
data.get('test')
|
timeout=15,
|
||||||
except AttributeError:
|
return_response=True)
|
||||||
LOG.error('Could not download data from FanartTV')
|
if not data.ok:
|
||||||
|
LOG.debug('Could not download data from FanartTV')
|
||||||
return artworks
|
return artworks
|
||||||
|
data = data.json()
|
||||||
|
|
||||||
fanart_tv_types = list(v.FANART_TV_TO_KODI_TYPE)
|
fanart_tv_types = list(v.FANART_TV_TO_KODI_TYPE)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue