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:
|
||||
dbPath = getKodiVideoDBPath()
|
||||
|
||||
connection = sqlite3.connect(dbPath)
|
||||
connection = sqlite3.connect(dbPath, timeout=15.0)
|
||||
return connection
|
||||
|
||||
def getKodiVideoDBPath():
|
||||
|
|
Loading…
Reference in a new issue