From cfb94b7bd05ecd2e2ac7f121d484724aa2c5ce34 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Mon, 18 Jul 2016 15:47:42 -0500 Subject: [PATCH] Temp fix for database being locked --- resources/lib/utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index 0339b149..8623f3c4 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -81,8 +81,7 @@ def settings(setting, value=None): def language(string_id): # Central string retrieval - unicode - string = xbmcaddon.Addon(id='plugin.video.emby').getLocalizedString(string_id) - return string + return xbmcaddon.Addon(id='plugin.video.emby').getLocalizedString(string_id) ################################################################################################# # Database related methods @@ -98,7 +97,7 @@ def kodiSQL(media_type="video"): else: dbPath = getKodiVideoDBPath() - connection = sqlite3.connect(dbPath, timeout=20) + connection = sqlite3.connect(dbPath, isolation_level=None, timeout=20) return connection def getKodiVideoDBPath():