2016-01-18, 15:51
Hello,
I wanted to add support for 3-rd party plugin from my own plugin.
I would like not to edit the plugin I want to add support too.
That plugin is asking this JSON query:
{'jsonrpc': '2.0', 'method': 'Player.GetItem', 'params': {'playerid': 1}, 'id': 1}
The result I get is:
{"id":1,"jsonrpc":"2.0","result":{"item":{"label":"You`re Myself, I`m Yourself","type":"episode"}}}
The file that is played is not in database but it invoke from mine plugin.
I would like to add item 'id' to the 'item' dictionary so the 3-rd party plugin can read it from there.
Is it possible to write that information there ?
I already tried ListItem and set property of 'id' there but that dont work
I wanted to add support for 3-rd party plugin from my own plugin.
I would like not to edit the plugin I want to add support too.
That plugin is asking this JSON query:
{'jsonrpc': '2.0', 'method': 'Player.GetItem', 'params': {'playerid': 1}, 'id': 1}
The result I get is:
{"id":1,"jsonrpc":"2.0","result":{"item":{"label":"You`re Myself, I`m Yourself","type":"episode"}}}
The file that is played is not in database but it invoke from mine plugin.
I would like to add item 'id' to the 'item' dictionary so the 3-rd party plugin can read it from there.
Is it possible to write that information there ?
I already tried ListItem and set property of 'id' there but that dont work