From 27f998560146f9a0b2c56fea9c8d3577081530d6 Mon Sep 17 00:00:00 2001 From: sfaulds Date: Fri, 11 Nov 2016 14:44:48 +1100 Subject: [PATCH] move the verify emby DB to the service entry --- addon.xml | 2 +- resources/lib/librarysync.py | 3 --- resources/lib/service_entry.py | 2 ++ 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/addon.xml b/addon.xml index dba50b95..82dc9651 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index fe795b15..bc89af22 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -651,9 +651,6 @@ class LibrarySync(threading.Thread): log.warn("---===### Starting LibrarySync ###===---") - # Verify database structure, otherwise create it. - self._verify_emby_database() - while not self.monitor.abortRequested(): # In the event the server goes offline diff --git a/resources/lib/service_entry.py b/resources/lib/service_entry.py index 443c9248..5ed15c5c 100644 --- a/resources/lib/service_entry.py +++ b/resources/lib/service_entry.py @@ -100,6 +100,8 @@ class Service(object): self.websocket_thread = wsc.WebSocketClient() self.library_thread = librarysync.LibrarySync() + # Verify database structure, otherwise create it. + self.library_thread._verify_emby_database() while not self.monitor.abortRequested():