diff --git a/resources/lib/WebSocketClient.py b/resources/lib/WebSocketClient.py index fd17fd93..aa65b468 100644 --- a/resources/lib/WebSocketClient.py +++ b/resources/lib/WebSocketClient.py @@ -242,7 +242,8 @@ class WebSocketThread(threading.Thread): xbmcgui.Dialog().notification(header, text) elif command == "SendString": string = arguments[u'String'] - xbmcgui.Dialog().notification("Emby server", string) + text = '{"jsonrpc": "2.0", "method": "Input.SendText", "params": { "text": "%s", "done": false }, "id": 0}' % string + result = xbmc.executeJSONRPC(text) else: self.logMsg("Unknown command.", 1)