WIP I want to display addon content to web interface
#1
Hello , i made an HTPC for my parents and i want to make it VERY easy to work.

Im developing (i don't know if there is already something out there making what i want) a web interface for my XBMC.

It will be browsable by my iPad and i want to display a specifics addon content.

For example let's say my addon is icefilms , i want to make my browser list Movies from category Featured.

Like this :

Code:
Picture -> title & desc
Play

Picture -> title & desc
Play

Picture -> title & desc
Play

I don't want you to tell my how to make it , i want you to tell me why

http://kodi.wiki/view/JSON-RPC_API/v6

6 Global types
6.1 Addon
6.1.1 Addon.Content

doesn't work , it says method not found when i try it.

Code:
http://127.0.0.1:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Addon.Content", "id": 1}

Thanks !!
Reply
#2
There are already web interfaces available, but none I am aware of will list addon content.

The XBMC apps for android and iOS do this though.

You may want to look into maraschino or htpc manager. They are both web interfaces built in python.
"PPC is too slow, your CPU has no balls to handle HD content." ~ Davilla
"Maybe it's a toaster. Who knows, but it has nothing to do with us." ~ Ned Scott
Reply
#3
(2014-10-30, 20:48)lrusak Wrote: There are already web interfaces available, but none I am aware of will list addon content.

but it's not impossible , right ?

thanks for answering
Reply
#4
Addon.Content is a type and not a method. What you are after is called Files.GetDirectory with a path of the form
Code:
plugin://<plugin-id>
which will provide you with a list of items that are provided by that plugin.
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.
Reply
#5
(2014-10-30, 21:28)Montellese Wrote: What you are after is called Files.GetDirectory with a path of the form
Code:
plugin://<plugin-id>
which will provide you with a list of items that are provided by that plugin.

How i'm supposed to use
Code:
plugin://<plugin-id>

i'm currently using this

Code:
http://127.0.0.1:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Addons.GetAddonDetails", "params" : {"addonid":"plugin.video.genesis"},"id": 1}

i'm struggling with the current documentation :/




Just find out ,

Code:
{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"properties": ["title", "file", "playcount", "lastplayed"], "directory":"plugin://plugin.video.youtube/", "media":"files"}, "id": "watched_items"}

thanks
Reply

Logout Mark Read Team Forum Stats Members Help
I want to display addon content to web interface0