Fix AttributeError
This commit is contained in:
parent
afedf03ac9
commit
54113a715b
1 changed files with 1 additions and 1 deletions
|
@ -360,6 +360,6 @@ def cache_artwork(plex_id, plex_type, kodi_id=None, kodi_type=None):
|
||||||
LOG.error('Could not retrieve Plex db info for %s', plex_id)
|
LOG.error('Could not retrieve Plex db info for %s', plex_id)
|
||||||
return
|
return
|
||||||
kodi_id, kodi_type = item['kodi_id'], item['kodi_type']
|
kodi_id, kodi_type = item['kodi_id'], item['kodi_type']
|
||||||
with kodi_db.KODIDB_FROM_PLEXTYPE[plex_type] as kodidb:
|
with kodi_db.KODIDB_FROM_PLEXTYPE[plex_type]() as kodidb:
|
||||||
for url in kodidb.art_urls(kodi_id, kodi_type):
|
for url in kodidb.art_urls(kodi_id, kodi_type):
|
||||||
artwork.cache_url(url)
|
artwork.cache_url(url)
|
||||||
|
|
Loading…
Reference in a new issue