How to pass the value to another addon?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
directer Offline
Junior Member
Posts: 49
Joined: Aug 2013
Reputation: 0
Post: #1
Due to i develop the three plugin such as video, music and picture. It must to login in three part. Is it possible that i login at one and the another can receive the value.
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #2
you can instance xbmc.Addon for anything in your plugin. decide where to put the value (as a setting) then just have em all read/write it to that common one..
(This post was last modified: 2013-10-03 11:56 by spiff.)
find quote
directer Offline
Junior Member
Posts: 49
Joined: Aug 2013
Reputation: 0
Post: #3
Sorry, i did not understand, if i need to change username as i must to setting into three add-on??
find quote
Roman_V_M Online
Fan
Posts: 568
Joined: Jun 2011
Reputation: 14
Location: Kyiv, Ukraine
Post: #4
(2013-10-03 13:22)directer Wrote:  Sorry, i did not understand, if i need to change username as i must to setting into three add-on??

I guess, what spiff means is that you can read another addon's settings from your addon:

PHP Code:
_ANOTHER_ADDON_ID 'your.another.addon'
_another_addon xbmcaddon.Addon(id='_ANOTHER_ADDON_ID')
another_addon_setting _another_addon.getSetting('setting'

AMD A4-3300 + AsRock A75M-ITX
XBMC 13.2 (custom build) on Windows 7
find quote