mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-09-22 22:34:54 +00:00
Transform database locked into a settings
Temporary settings, because it slows down the process since it's auto-committing. Not everyone has database locked crashes. Permanent fix is being worked on in the database branch.
This commit is contained in:
parent
c1632ec27a
commit
f89d5c96f6
3 changed files with 6 additions and 1 deletions
|
@ -97,7 +97,10 @@ def kodiSQL(media_type="video"):
|
|||
else:
|
||||
dbPath = getKodiVideoDBPath()
|
||||
|
||||
connection = sqlite3.connect(dbPath, isolation_level=None, timeout=20)
|
||||
if settings('dblock') == "true":
|
||||
connection = sqlite3.connect(dbPath, isolation_level=None, timeout=20)
|
||||
else:
|
||||
connection = sqlite3.connect(dbPath, timeout=20)
|
||||
return connection
|
||||
|
||||
def getKodiVideoDBPath():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue