mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 09:46:11 +00:00
Added support for webclient message
Both "send message" and "send text"
This commit is contained in:
parent
3b3f9f7bba
commit
0ad7ed3c18
1 changed files with 13 additions and 0 deletions
|
@ -179,6 +179,19 @@ class WebSocketThread(threading.Thread):
|
|||
self.remove_items(itemsRemoved)
|
||||
self.update_items(itemsToUpdate)
|
||||
|
||||
elif messageType == "GeneralCommand":
|
||||
|
||||
if data.get("Name") == "DisplayMessage":
|
||||
message = data.get("Arguments")
|
||||
header = message[u'Header']
|
||||
text = message[u'Text']
|
||||
xbmcgui.Dialog().notification(header, text)
|
||||
|
||||
elif data.get("Name") == "SendString":
|
||||
message = data.get("Arguments")
|
||||
string = message[u'String']
|
||||
xbmcgui.Dialog().notification("Emby server", string)
|
||||
|
||||
def remove_items(self, itemsRemoved):
|
||||
|
||||
#Process video library
|
||||
|
|
Loading…
Reference in a new issue