From 4b5d15fc153249098653ee8f66333e1313e3a55e Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Wed, 1 Feb 2017 20:09:17 +0100 Subject: [PATCH] Fix additional artwork not downloading --- resources/lib/librarysync.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index 43aeec23..3ff54d48 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -298,18 +298,18 @@ class ProcessFanartThread(Thread): except Queue.Empty: xbmc.sleep(200) continue + with plexdb.Get_Plex_DB() as plex_db: + try: + kodiId = plex_db.getItem_byId(item['itemId'])[0] + except TypeError: + log.error('Could not get Kodi id for plex id %s' + % item['itemId']) + queue.task_done() + continue if item['refresh'] is True: # Leave the Plex art untouched allartworks = None else: - with plexdb.Get_Plex_DB() as plex_db: - try: - kodiId = plex_db.getItem_byId(item['itemId'])[0] - except TypeError: - log.error('Could not get Kodi id for plex id %s' - % item['itemId']) - queue.task_done() - continue with kodidb.GetKodiDB('video') as kodi_db: allartworks = kodi_db.existingArt(kodiId, item['mediaType'])