Adjust delete cached artwork

If fails, move on instead.
This commit is contained in:
angelblue05 2015-12-02 16:51:30 -06:00
parent 73d3974e39
commit 3384124f9c
1 changed files with 5 additions and 3 deletions

View File

@ -226,9 +226,11 @@ class TextureCache():
thumbnails = xbmc.translatePath("special://thumbnails/%s" % cachedurl)
self.logMsg("Deleting cached thumbnail: %s" % thumbnails, 1)
xbmcvfs.delete(thumbnails)
try:
cursor.execute("DELETE FROM texture WHERE url = ?", (url,))
connection.commit()
except:
self.logMsg("Issue deleting url from cache. Skipping.", 2)
finally:
cursor.close()