Fix additional artwork not downloading
This commit is contained in:
parent
1cc0f8a6c6
commit
4b5d15fc15
1 changed files with 8 additions and 8 deletions
|
@ -298,18 +298,18 @@ class ProcessFanartThread(Thread):
|
||||||
except Queue.Empty:
|
except Queue.Empty:
|
||||||
xbmc.sleep(200)
|
xbmc.sleep(200)
|
||||||
continue
|
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:
|
if item['refresh'] is True:
|
||||||
# Leave the Plex art untouched
|
# Leave the Plex art untouched
|
||||||
allartworks = None
|
allartworks = None
|
||||||
else:
|
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:
|
with kodidb.GetKodiDB('video') as kodi_db:
|
||||||
allartworks = kodi_db.existingArt(kodiId,
|
allartworks = kodi_db.existingArt(kodiId,
|
||||||
item['mediaType'])
|
item['mediaType'])
|
||||||
|
|
Loading…
Add table
Reference in a new issue