mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Temp fix for database being locked
This commit is contained in:
parent
1559dfc97c
commit
cfb94b7bd0
1 changed files with 2 additions and 3 deletions
|
@ -81,8 +81,7 @@ def settings(setting, value=None):
|
||||||
|
|
||||||
def language(string_id):
|
def language(string_id):
|
||||||
# Central string retrieval - unicode
|
# Central string retrieval - unicode
|
||||||
string = xbmcaddon.Addon(id='plugin.video.emby').getLocalizedString(string_id)
|
return xbmcaddon.Addon(id='plugin.video.emby').getLocalizedString(string_id)
|
||||||
return string
|
|
||||||
|
|
||||||
#################################################################################################
|
#################################################################################################
|
||||||
# Database related methods
|
# Database related methods
|
||||||
|
@ -98,7 +97,7 @@ def kodiSQL(media_type="video"):
|
||||||
else:
|
else:
|
||||||
dbPath = getKodiVideoDBPath()
|
dbPath = getKodiVideoDBPath()
|
||||||
|
|
||||||
connection = sqlite3.connect(dbPath, timeout=20)
|
connection = sqlite3.connect(dbPath, isolation_level=None, timeout=20)
|
||||||
return connection
|
return connection
|
||||||
|
|
||||||
def getKodiVideoDBPath():
|
def getKodiVideoDBPath():
|
||||||
|
|
Loading…
Reference in a new issue