Kodi Community Forum

Full Version: Detect from which context a addon was opened
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
If you have an addon that is accessible from different menus (for example, <provides>video audio</provides>), is there a way to know from which one the addon was opened or execute different code depending on the one used?
unless it has been broken your plugin will be called with a parameter content_type=<type>
Ah, heh, you are right. I didn't realize. Thanks.