(2016-10-01 17:11)unreal Wrote:(2016-10-01 14:23)Roman_V_M Wrote:(2016-10-01 09:34)unreal Wrote: How do I open this menu with a kodi listitem?
I can open the menu at the beginning of the addon. But I wanna open it with a listitem.
You mean like in a media plugin? There is no difference where to use PyXBMCt - on the module lever or in functions. Just put your PyXBMCt-related code into the part of your plugin that is called by the respective ListItem.
That sounds really easy, but how would that look like. I'm more a java programmer then a python programmer. Maybe that is why is harder for me to implement. Let me give you a idea of our addon. We have a for loop that parses urls from a website. And we add to that a web url link.
Our code is really basic.
This has nothing to do with Java vs. Python. For me, Kodi-Python API looks more like Java than Python. If you want to create a media plugin to present your media content in Kodi then you are using a wrong approach because your code makes no sense to me (why playlists?). There are 2 sticky topics in this forum section with video and audio plugin examples (I made the video example, actually). Look at those examples and try to make something similar.