mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 17:56:11 +00:00
SendString - General command
It just clicked in my mind that "send string" can be used to input to keyboard dialogs in kodi. Awesome :)
This commit is contained in:
parent
79e4bd8a6a
commit
bdfef9f8b7
1 changed files with 2 additions and 1 deletions
|
@ -242,7 +242,8 @@ class WebSocketThread(threading.Thread):
|
||||||
xbmcgui.Dialog().notification(header, text)
|
xbmcgui.Dialog().notification(header, text)
|
||||||
elif command == "SendString":
|
elif command == "SendString":
|
||||||
string = arguments[u'String']
|
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:
|
else:
|
||||||
self.logMsg("Unknown command.", 1)
|
self.logMsg("Unknown command.", 1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue