Fix TypeError

This commit is contained in:
croneter 2018-11-06 14:13:28 +01:00
parent b08b3dc443
commit 440f399917

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) 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 kodidb.KODIDB_FROM_PLEXTYPE[plex_type]() as kodi_db: with kodidb.KODIDB_FROM_PLEXTYPE[plex_type] as kodi_db:
for url in kodi_db.art_urls(kodi_id, kodi_type): for url in kodi_db.art_urls(kodi_id, kodi_type):
artwork.cache_url(url) artwork.cache_url(url)