mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-06 08:16:13 +00:00
add WebSocket for events and remote control
For some reason playback stop is not being reported
This commit is contained in:
parent
59cdfcd922
commit
9e5385c1c6
5 changed files with 398 additions and 2 deletions
|
@ -17,6 +17,7 @@ from LibrarySync import LibrarySync
|
|||
from Player import Player
|
||||
from DownloadUtils import DownloadUtils
|
||||
from ConnectionManager import ConnectionManager
|
||||
from WebSocketClient import WebSocketThread
|
||||
librarySync = LibrarySync()
|
||||
|
||||
class Service():
|
||||
|
@ -37,6 +38,8 @@ class Service():
|
|||
player = Player()
|
||||
lastProgressUpdate = datetime.today()
|
||||
|
||||
newWebSocketThread = WebSocketThread()
|
||||
newWebSocketThread.start()
|
||||
|
||||
# check kodi library sources
|
||||
mayRun = utils.checkKodiSources()
|
||||
|
@ -116,6 +119,9 @@ class Service():
|
|||
xbmc.log("Not authenticated yet")
|
||||
|
||||
utils.logMsg("MB3 Sync Service", "stopping Service",0)
|
||||
|
||||
if(newWebSocketThread != None):
|
||||
newWebSocketThread.stopClient()
|
||||
|
||||
|
||||
#start the service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue