From 54113a715bec7ac109d36f7ce809b7ebbec735eb Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 11 Nov 2018 09:28:18 +0100 Subject: [PATCH] Fix AttributeError --- resources/lib/library_sync/websocket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/library_sync/websocket.py b/resources/lib/library_sync/websocket.py index 71189119..16832c22 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 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)