Posts: 8
Joined: Jan 2015
Reputation:
0
Hello,
I'd like to perform the following tasks in a self-written app:
- accessing all stations from the "My stations" list in order to display them in the app
- switching stations
Is there a way to do this with JSON-RPC? Is yes, can you point me in the right direction for the necessary API? So far I have not found an API to do this.
Thanks for your help,
Rudi
Posts: 5,184
Joined: Jan 2009
Reputation:
131
You need to use Files.GetDirectory with a plugin://<plugin ID> URL and work your way through the hierarchy to the "My stations" node.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.
Posts: 8
Joined: Jan 2015
Reputation:
0
Hi Montellese,
thanks for your quick answer . I did some tests with SOPAUI and it works like a charm!
Posts: 146
Joined: Mar 2015
Reputation:
6
axa88
Senior Member
Posts: 146
2015-07-23, 23:29
(This post was last modified: 2015-07-23, 23:30 by axa88.)
that's valid json if thats what your asking.
Lots of room for speculation here...
First execute the Get.Addons method and see if you have the corret plugin path...
This may well be circumstantial evidence but Ive never seen an underscore in a plugin path...
Sure your not using some sort of programming that replaces "." with "_" in variable strings or ?
Posts: 146
Joined: Mar 2015
Reputation:
6
axa88
Senior Member
Posts: 146
2015-07-24, 18:07
(This post was last modified: 2015-07-27, 02:50 by axa88.)
really?
Ive never come across an end slash to be necessary.
When you execute the GetAddons method, does this pluginid actually come back with that slash at the end?