mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Attempt at fixing database locked
Hopefully close before cachetexture will fix the issue.
This commit is contained in:
parent
5f356b9147
commit
b6f70fc5bf
1 changed files with 4 additions and 2 deletions
|
@ -80,11 +80,13 @@ class TextureCache():
|
|||
cursor.execute("SELECT cachedurl FROM texture WHERE url = ?", (url,))
|
||||
result = cursor.fetchone()
|
||||
if result:
|
||||
cursor.execute("DELETE FROM texture WHERE url = ?", (url,))
|
||||
result = result[0]
|
||||
cursor.execute("DELETE FROM texture WHERE cachedurl = ?", (result,))
|
||||
connection.commit()
|
||||
cursor.close()
|
||||
else:
|
||||
cursor.close()
|
||||
self.CacheTexture(url)
|
||||
cursor.close()
|
||||
|
||||
|
||||
def setKodiWebServerDetails(self):
|
||||
|
|
Loading…
Reference in a new issue