Try to prevent OperationalError: database is locked
This commit is contained in:
parent
086d5c8901
commit
a7820a9cf6
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ def kodiSQL(media_type="video"):
|
||||||
else:
|
else:
|
||||||
dbPath = getKodiVideoDBPath()
|
dbPath = getKodiVideoDBPath()
|
||||||
|
|
||||||
connection = sqlite3.connect(dbPath)
|
connection = sqlite3.connect(dbPath, timeout=15.0)
|
||||||
return connection
|
return connection
|
||||||
|
|
||||||
def getKodiVideoDBPath():
|
def getKodiVideoDBPath():
|
||||||
|
|
Loading…
Reference in a new issue