Posts: 13
Joined: Jun 2014
Reputation:
0
Is it possible to use a script to change a specific addon setting,
I would like to map a key to enable disable an addon setting (on/off) the addon would be a service.
Thank's
Posts: 13
Joined: Jun 2014
Reputation:
0
Thank's
I was going for setting of the addon, like username, password, server etc ...
I building a service that downloads and plays video from a company internal server, the service is built so that if, for any reason, no video is available a fallback video is played.
I need a way to pause the service (for maintenance, so that i can access xbmc gui) i was thinking of checking a setting like "service_paused" , during the service loop this setting would be checked and if true video player would stop.
Also the service manages client queues, i am using the tv remote to increase / decrease current client number, using a simple script mapped to the remote buttons but i would like to save current client number in case a reboot is needed .
I was look at xbmcaddon.Addon ('script.foo.bar')
Sorry for my English.
Again any help is much appreciated
Posts: 1,506
Joined: Nov 2013
2014-07-11, 00:05
(This post was last modified: 2014-07-11, 00:07 by ironic_monkey.)
no, the suggested code is to enable/disable an addon in its entirety.
while you in principle can do
Code:
addon = xbmcaddon.Addon('service.foo')
addon.setSetting('foo', 'bar')
this will only update the xml file, but it won't signal a running service.