Added support for webclient message

Both "send message" and "send text"
This commit is contained in:
angelblue05 2015-05-09 02:17:58 -05:00
parent 3b3f9f7bba
commit 0ad7ed3c18

View file

@ -179,6 +179,19 @@ class WebSocketThread(threading.Thread):
self.remove_items(itemsRemoved) self.remove_items(itemsRemoved)
self.update_items(itemsToUpdate) 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): def remove_items(self, itemsRemoved):
#Process video library #Process video library