mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Fix emby database locked
This commit is contained in:
parent
66ea87b255
commit
d11cb32802
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ class Database(object):
|
||||||
self.conn = sqlite3.connect(self._sql(self.db_file), timeout=self.timeout)
|
self.conn = sqlite3.connect(self._sql(self.db_file), timeout=self.timeout)
|
||||||
self.cursor = self.conn.cursor()
|
self.cursor = self.conn.cursor()
|
||||||
|
|
||||||
if self.db_file in ('video', 'music', 'texture'):
|
if self.db_file in ('video', 'music', 'texture', 'emby'):
|
||||||
self.conn.execute("PRAGMA journal_mode=WAL")
|
self.conn.execute("PRAGMA journal_mode=WAL")
|
||||||
|
|
||||||
LOG.debug("--->[ database: %s ] %s", self.db_file, id(self.conn))
|
LOG.debug("--->[ database: %s ] %s", self.db_file, id(self.conn))
|
||||||
|
|
Loading…
Reference in a new issue