From 225776a1457d8a089273449abd3f0a3f8d0a915b Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Fri, 20 Jan 2017 16:00:17 +0100 Subject: [PATCH] Prevent OperationalError: database is locked - Fixes #183 --- resources/lib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index c55af70e..629d1218 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -227,7 +227,7 @@ def kodiSQL(media_type="video"): else: dbPath = getKodiVideoDBPath() - connection = sqlite3.connect(dbPath, timeout=15.0) + connection = sqlite3.connect(dbPath, timeout=60.0) return connection def getKodiVideoDBPath():