mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-03 14:56:13 +00:00
add library monitor to assist with embyskinhelper for data such as critcrating etc
This commit is contained in:
parent
0546dcc2f6
commit
0a6dd94eff
7 changed files with 159 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue