From d11cb32802bac441b9b9a1c0bbd522c716dd8171 Mon Sep 17 00:00:00 2001
From: angelblue05 <angelblue.dev@gmail.com>
Date: Mon, 8 Oct 2018 01:21:30 -0500
Subject: [PATCH] Fix emby database locked

---
 resources/lib/database/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/resources/lib/database/__init__.py b/resources/lib/database/__init__.py
index 71c054da..b114bcac 100644
--- a/resources/lib/database/__init__.py
+++ b/resources/lib/database/__init__.py
@@ -56,7 +56,7 @@ class Database(object):
         self.conn = sqlite3.connect(self._sql(self.db_file), timeout=self.timeout)
         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")
 
         LOG.debug("--->[ database: %s ] %s", self.db_file, id(self.conn))