mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06: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)
|
||||
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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue