2024-05-14, 12:15
Quote:With RunPlugin(...) Kodi just runs the plugin with the provided url. The plugin can do whatever it has to do, like changing settings, logging in to remote servers, wiping your hard drive, but Kodi does not expect any interaction of the plugin by calls like xbmcplugin.addDirectoryItem(...) or xbmcplugin.setResolvedUrl(...). In fact, a plugin handle of -1 suggest that it's simply impossible to interact like that.That is a very useful hint! Thanks for your datailed explanation. At least me, did not notice that reading the wiki pages (but that can be my fault because you can't just save it all to your brain ;P). I'd never assumed that RunPlugin(...) is causing this, so really thanks, that saved me!
Quote:Well, there is an entry named 'Add-ons' in the main menu from where you can open your add-on by clicking on its icon. If you insist on having a dedicated entry in the main menu, yours is probably the way to go, but I know absolutely nothing about skinning, so I can't help you there.Thats true, currently i am learning by doing
Quote:That sounds good. Still, you do call PlayMedia(...) somewhere. Despite my lack of skinning knowledge, I strongly feel there should be no need to do so. If your plugin provides the right info in the ListItems it produces and passes them to Kodi correctlyAlso a very good point. That is the right way to put the "puzzles" together for my understanding so far also. But as said, currently i am still learning by doing, but putting it into that clean way is the right track!