2015-02-27, 13:29
Could someone please advise the syntax for accessing other addons xml files from our own addon?
The xml files are in the userdata addon addon name directory.
Can we simply make a temporary change to the addon_id and then reinstate our own addon_id after the call to the 3rd parties addons xml file?
So something like this:
The xml files are in the userdata addon addon name directory.
Can we simply make a temporary change to the addon_id and then reinstate our own addon_id after the call to the 3rd parties addons xml file?
So something like this:
Code:
addon_id = "service.3rdpartyAddon"
Addon = xbmcaddon.Addon(addon_id)
datadir = Addon.getAddonInfo('profile')
addondir = Addon.getAddonInfo('path')
document = xml.dom.minidom.parse(xbmc.translatePath(datadir + "3rdparty.xml"))
............ work on document ......................
addon_id = "script.Ouraddon"
Addon = xbmcaddon.Addon(addon_id)
datadir = Addon.getAddonInfo('profile')
addondir = Addon.getAddonInfo('path')
.................proceed with OurAddon .......................