2016-04-27, 05:24
Does anyone know where you would fine the function that tells kodi that an add-on is enabled?
such as pvr.iptvsimple
<setting id="Enabled" default="True" />
such as pvr.iptvsimple
<setting id="Enabled" default="True" />
xbmc.getCondVisibility(System.HasAddon(scriptID))
<visible>System.HasAddon(scriptID)</visible>
(2016-04-28, 17:02)FresnoTV Wrote: Thanks for the reply pkscount, but I've tried with no success for pvr.iptvsimple
I've put it in a default.py of a custom add-on and it doesn't enable IPTV Simple Client
Tried;
xbmc.getCondVisibility(System.HasAddon(pvr.iptvsimple))
(2016-04-29, 18:01)FresnoTV Wrote: oh ok, no problem, well I appreciate the help. If anyone knows how to enable the pvr addon programmatically please let us know.
import xbmc
xbmc.executeJSONRPC('{"jsonrpc": "2.0", "id":1, "method": "Addons.SetAddonEnabled", "params": { "addonid": "plugin.video.cbsn", "enabled": false }}')
(2017-01-08, 15:45)Demonstratorz Wrote: So far I've tried it all, thru json python and it seems like the only thing left it to modify The or if you wanna wait I'm making a script that enables the pvr management then uses actions to enable the pvr client, it works ATM but there are still a few bugs. I'm not sire on what the protocols are here so I don't know if I can give you a link or nor. But I can tell you how I did it. I enabled the pvr management system as a whole not a client through json rpc. You can can send commends with rpc through either a urllib query or you can simple use the xbmc python module http://mirrors.kodi.tv/docs/python-docs/...uteJSONRPC. Btw there is another wat to start pvr manager but during my time of making this script I found that it worked in 90% of situations. Anyway, after that I set a service to activate when a setting is enabled but you could easily use something like a skinstring to set the conditions for the script to be active. And I used execute built in with the action function, set the appropriate action ids and spaced them out accordinly with xbmc. Sleep and voicla. But pretty soon here I'm going to send clicks instead