Python: Get current active addon name
#1
Hi,
is it somehow possible to get the name of the currently running addon
while something is playing (video or audio)?
Reply
#2
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..
Reply
#3
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.
Reply
#4
Container.PluginName should work (never tested it though, so no guarantees)
http://kodi.wiki/view/InfoLabels
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#5
(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')
Reply
#6
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.
Reply

Logout Mark Read Team Forum Stats Members Help
Python: Get current active addon name0