2011-11-23, 15:47
Ok, the title is kind of confusing I'll grant you, but here's what's happening. I'm using a state machine type set up (I've been looking at the iplayer add on) and when adding a list item as a folder I can quite happily use
and it will return the correct host setting. Add a list item with folder = False and I get 'GetSetting called with an invalid handle.' in the logs. So basically, click on a folder and the plugin handle is found correctly, click on a non folder and it's not.
This is my first add on so be gentle!
Code:
__plugin_handle__ = int(sys.argv[1])
host = xbmcplugin.getSetting(__plugin_handle__, 'host')
and it will return the correct host setting. Add a list item with folder = False and I get 'GetSetting called with an invalid handle.' in the logs. So basically, click on a folder and the plugin handle is found correctly, click on a non folder and it's not.
This is my first add on so be gentle!