From 2d636d5b2dab9aa5b57d67fc871994575f842d9e Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sun, 11 Oct 2015 23:41:55 -0500 Subject: [PATCH] Fix artwork Prevent artwork type not supported from syncing --- resources/lib/TextureCache.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/TextureCache.py b/resources/lib/TextureCache.py index 4d2a66d9..6c75a280 100644 --- a/resources/lib/TextureCache.py +++ b/resources/lib/TextureCache.py @@ -162,7 +162,8 @@ class TextureCache(): for artType in kodiart[art]: self.addOrUpdateArt(artwork[art], kodiId, mediaType, artType, cursor) - else: # For banner, logo, art, thumb, disc + elif kodiart.get(art): # For banner, logo, art, thumb, disc + # Only process artwork type that Kodi can use self.addOrUpdateArt(artwork[art], kodiId, mediaType, kodiart[art], cursor) def addOrUpdateArt(self, imageUrl, kodiId, mediaType, imageType, cursor):