mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 10:46:11 +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,))
|
cursor.execute("SELECT cachedurl FROM texture WHERE url = ?", (url,))
|
||||||
result = cursor.fetchone()
|
result = cursor.fetchone()
|
||||||
if result:
|
if result:
|
||||||
cursor.execute("DELETE FROM texture WHERE url = ?", (url,))
|
result = result[0]
|
||||||
|
cursor.execute("DELETE FROM texture WHERE cachedurl = ?", (result,))
|
||||||
connection.commit()
|
connection.commit()
|
||||||
else:
|
|
||||||
self.CacheTexture(url)
|
|
||||||
cursor.close()
|
cursor.close()
|
||||||
|
else:
|
||||||
|
cursor.close()
|
||||||
|
self.CacheTexture(url)
|
||||||
|
|
||||||
|
|
||||||
def setKodiWebServerDetails(self):
|
def setKodiWebServerDetails(self):
|
||||||
|
|
Loading…
Reference in a new issue