Posts: 5
Joined: Feb 2018
Reputation:
0
2018-02-14, 12:31
Hi,
I would like to browse video addons through the API, from RPC with a custom perl code.
How should I proceed ?
I've seen some infos about browsing into kodi itself through the API, but not about browsing addons.
Could you point me to a link where I could get this informations ?
Thanks
Posts: 5
Joined: Feb 2018
Reputation:
0
Hi,
Thanks.
So I've got around a bit, and I've managed to send JSON requests, listing me the directory of my plugin, with the help of "Files.GetDirectory" method.
The listing given is a list of files ("filetype":"file").
At this point onto the graphic interface of kodi, the plugin scan for a list of sources for the given file.
How can I handle that task through JSON (getting the list of sources for the given file) ?
I would have figure that the listing should have given me a list of "directories" to browse into the the sources, for the given file.
But as the filetypes are "file" I don't know how to proceed from there...
Thanks in advance
Posts: 5
Joined: Feb 2018
Reputation:
0
To make it more clear, I want to call the scrapper within the addon, and get its results from the JSON-RPC interface.
Posts: 5
Joined: Feb 2018
Reputation:
0
Hi,
Thank you. Yes I went that far.
But the plugin I'm browsing uses a scraper afterward.
So the files listed are not actually files: the plugin launches several scraper.
Onto the GUI interface, if i click onto one of these files, it begins to scrap, then it displays the results.
I'd like to get these scraped results, through JSON-RPC