Kodi Community Forum
Kodi Community Forum
>
Development
>
Add-ons
> Detect from which context a addon was opened
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.
chuso
2015-12-01, 14:34
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?
ironic_monkey
2015-12-01, 15:15
unless it has been broken your plugin will be called with a parameter content_type=<type>
chuso
2015-12-01, 17:03
Ah, heh, you are right. I didn't realize. Thanks.
Kodi Community Forum
>
Development
>
Add-ons
> Detect from which context a addon was opened