mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 09:46:11 +00:00
Fix server restart event
Mark the server as offline to properly post capabilities once server is back online
This commit is contained in:
parent
bee2c78887
commit
43832696eb
1 changed files with 3 additions and 1 deletions
|
@ -66,7 +66,8 @@ class WebSocketClient(threading.Thread):
|
||||||
message_type = result['MessageType']
|
message_type = result['MessageType']
|
||||||
data = result['Data']
|
data = result['Data']
|
||||||
|
|
||||||
if message_type not in ('NotificationAdded', 'SessionEnded'):
|
if message_type not in ('NotificationAdded', 'SessionEnded', 'RestartRequired',
|
||||||
|
'PackageInstalling'):
|
||||||
# Mute certain events
|
# Mute certain events
|
||||||
log.info("Message: %s", message)
|
log.info("Message: %s", message)
|
||||||
|
|
||||||
|
@ -285,6 +286,7 @@ class WebSocketClient(threading.Thread):
|
||||||
heading="{emby}",
|
heading="{emby}",
|
||||||
message=lang(33006),
|
message=lang(33006),
|
||||||
icon="{emby}")
|
icon="{emby}")
|
||||||
|
window('emby_online', value="false")
|
||||||
|
|
||||||
def on_close(self, ws):
|
def on_close(self, ws):
|
||||||
log.debug("closed")
|
log.debug("closed")
|
||||||
|
|
Loading…
Reference in a new issue