fix texture cache stuff

This commit is contained in:
Marcel van der Veldt 2015-06-24 10:02:34 +02:00
parent d617aa13ac
commit feb6c73fc3
2 changed files with 28 additions and 21 deletions

View file

@ -792,10 +792,8 @@ class WriteKodiVideoDB():
cursor.execute("UPDATE art set url = ? WHERE media_id = ? AND media_type = ? AND type = ?", (imageUrl, kodiId, mediaType, imageType))
#cache fanart and poster in Kodi texture cache
if "fanart" in imageType:
if "fanart" in imageType or "poster" in imageType:
utils.logMsg("ArtworkSync", "Adding or Updating Fanart: %s" % imageUrl)
self.textureCache.refreshFanart(imageUrl)
elif "poster" in imageType:
self.textureCache.CacheTexture(imageUrl)
def setKodiResumePoint(self, fileid, resume_seconds, total_seconds, cursor):