Get plugin ID of service?
#1
I'm writing a plugin that runs at startup. Therefore I'm using

Code:
<extension point="xbmc.service" library="default.py" start="startup"/>

in my addon.xml.

I have settings associated with this plugin, but how can I get them? Convention seems to be int(sys.argv[1]) ie:

Code:
setting = xbmcplugin.getSetting(int(sys.argv[1]), 'somesetting')

If I run the line above it fails because there's nothing in sys.argv.
Reply
#2
PHP Code:
import xbmcaddon
setting1 
xbmcaddon.Addon().getSetting("your_setting1"

http://mirrors.xbmc.org/docs/python-docs/xbmcaddon.html
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#3
Thanks Martijn!
Reply

Logout Mark Read Team Forum Stats Members Help
Get plugin ID of service?0