move the verify emby DB to the service entry

This commit is contained in:
sfaulds 2016-11-11 14:44:48 +11:00
parent 4575191093
commit 27f9985601
3 changed files with 3 additions and 4 deletions

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.emby" <addon id="plugin.video.emby"
name="Emby" name="Emby"
version="2.3.12" version="2.3.13"
provider-name="Emby.media"> provider-name="Emby.media">
<requires> <requires>
<import addon="xbmc.python" version="2.19.0"/> <import addon="xbmc.python" version="2.19.0"/>

View file

@ -651,9 +651,6 @@ class LibrarySync(threading.Thread):
log.warn("---===### Starting LibrarySync ###===---") log.warn("---===### Starting LibrarySync ###===---")
# Verify database structure, otherwise create it.
self._verify_emby_database()
while not self.monitor.abortRequested(): while not self.monitor.abortRequested():
# In the event the server goes offline # In the event the server goes offline

View file

@ -100,6 +100,8 @@ class Service(object):
self.websocket_thread = wsc.WebSocketClient() self.websocket_thread = wsc.WebSocketClient()
self.library_thread = librarysync.LibrarySync() self.library_thread = librarysync.LibrarySync()
# Verify database structure, otherwise create it.
self.library_thread._verify_emby_database()
while not self.monitor.abortRequested(): while not self.monitor.abortRequested():