Adjust delete cached artwork
If fails, move on instead.
This commit is contained in:
parent
73d3974e39
commit
3384124f9c
1 changed files with 5 additions and 3 deletions
|
@ -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()
|
Loading…
Reference in a new issue