mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
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)
|
thumbnails = xbmc.translatePath("special://thumbnails/%s" % cachedurl)
|
||||||
self.logMsg("Deleting cached thumbnail: %s" % thumbnails, 1)
|
self.logMsg("Deleting cached thumbnail: %s" % thumbnails, 1)
|
||||||
xbmcvfs.delete(thumbnails)
|
xbmcvfs.delete(thumbnails)
|
||||||
|
try:
|
||||||
cursor.execute("DELETE FROM texture WHERE url = ?", (url,))
|
cursor.execute("DELETE FROM texture WHERE url = ?", (url,))
|
||||||
connection.commit()
|
connection.commit()
|
||||||
|
except:
|
||||||
|
self.logMsg("Issue deleting url from cache. Skipping.", 2)
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
cursor.close()
|
cursor.close()
|
Loading…
Reference in a new issue