Try to prevent OperationalError: database is locked

This commit is contained in:
tomkat83 2016-09-25 18:59:34 +02:00
parent 086d5c8901
commit a7820a9cf6

View file

@ -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():