Quantcast
Channel: Kodi Community Forum - All Forums
Viewing all articles
Browse latest Browse all 84005

Get plugin ID of service?

$
0
0
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.

Viewing all articles
Browse latest Browse all 84005

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>