Fix additional artwork not downloading

This commit is contained in:
tomkat83 2017-02-01 20:09:17 +01:00
parent 1cc0f8a6c6
commit 4b5d15fc15

View file

@ -298,10 +298,6 @@ class ProcessFanartThread(Thread):
except Queue.Empty:
xbmc.sleep(200)
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]
@ -310,6 +306,10 @@ class ProcessFanartThread(Thread):
% item['itemId'])
queue.task_done()
continue
if item['refresh'] is True:
# Leave the Plex art untouched
allartworks = None
else:
with kodidb.GetKodiDB('video') as kodi_db:
allartworks = kodi_db.existingArt(kodiId,
item['mediaType'])