Kodi Community Forum
Python: Get current active addon name - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Python: Get current active addon name (/showthread.php?tid=225685)



Python: Get current active addon name - puenktchen - 2015-04-30

Hi,
is it somehow possible to get the name of the currently running addon
while something is playing (video or audio)?


RE: Python: Get current active addon name - ironic_monkey - 2015-04-30

not sure what you refer to but if you mean the plugin that provided the item, it's not running at that point. plugins are virtual filesystem - it lists the directory and then it exits..


Python: Get current active addon name - puenktchen - 2015-04-30

Aah okay, understand.
And in general, how to get the addons name while browsing in it? I know it is possible by the addon id, but that i don't know because it changes with every addon.


RE: Python: Get current active addon name - phil65 - 2015-04-30

Container.PluginName should work (never tested it though, so no guarantees)
http://kodi.wiki/view/InfoLabels


RE: Python: Get current active addon name - puenktchen - 2015-05-16

(2015-04-30, 19:39)phil65 Wrote: Container.PluginName should work (never tested it though, so no guarantees)
http://kodi.wiki/view/InfoLabels
Sorry for the late response!
You put me in the right direction:
Code:
AddonName = xbmc.getInfoLabel('Container.PluginName')
AddonName = xbmcaddon.Addon(AddonName).getAddonInfo('name')



RE: Python: Get current active addon name - badsheep - 2019-08-11

Hello,

I'd like to modify the source code to custom my own version.
And I ask the equivalent question in c++ : how can I access to the name of the current active addon ?
Do I have to search here ?

Thanks !

UPDATE

I created a new topic here.