mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +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)
|
||||
self.logMsg("Deleting cached thumbnail: %s" % thumbnails, 1)
|
||||
xbmcvfs.delete(thumbnails)
|
||||
|
||||
cursor.execute("DELETE FROM texture WHERE url = ?", (url,))
|
||||
connection.commit()
|
||||
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