Fix emby database locked

This commit is contained in:
angelblue05 2018-10-08 01:21:30 -05:00
parent 66ea87b255
commit d11cb32802

View file

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