diff --git a/resources/lib/library_sync/websocket.py b/resources/lib/library_sync/websocket.py index 5c278e81..798529f4 100644 --- a/resources/lib/library_sync/websocket.py +++ b/resources/lib/library_sync/websocket.py @@ -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 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): artwork.cache_url(url)