add library monitor to assist with embyskinhelper for data such as critcrating etc

This commit is contained in:
im85288 2015-09-15 18:03:52 +01:00
parent 0546dcc2f6
commit 0a6dd94eff
7 changed files with 159 additions and 10 deletions

View file

@ -23,7 +23,7 @@ from UserClient import UserClient
from Player import Player
from WebSocketClient import WebSocketThread
from LibrarySync import LibrarySync
from LibraryMonitor import LibraryMonitor
class Service():
@ -103,6 +103,9 @@ class Service():
player = Player()
ws = WebSocketThread()
library = LibrarySync()
librarymonitor = LibraryMonitor()
xbmc.log("START LIBRARY MONITOR")
librarymonitor.start()
# Sync and progress report
lastProgressUpdate = datetime.today()
@ -264,6 +267,9 @@ class Service():
if (self.newUserClient is not None):
user.stopClient()
xbmc.log("STOP LIBRARY MONITOR")
librarymonitor.stop()
self.logMsg("======== STOP %s ========" % self.addonName, 0)
#start the service