Fix AttributeError

This commit is contained in:
croneter 2018-11-11 09:28:18 +01:00
parent afedf03ac9
commit 54113a715b

View file

@ -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)
return
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):
artwork.cache_url(url)