2017-03-20, 19:10
I use a couple of little scripts to enable / disable dvbviewer.
The default.py for disabling is simply:
Change the addonid to mythtv, add an addon.xml, zip it up and install - make another with enabled:true and do likewise.
Then use
That - or something like it - should work. I switched from using start / stop pvrmanager when I moved to krypton.
I don't do the last part though - I enable via the gui - so the command may not be exactly right RunScript is a built-in function though, so it should work.
The default.py for disabling is simply:
Code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#import xbmc,xbmcgui,xbmcplugin
import xbmc
xbmc.executeJSONRPC('{"jsonrpc":"2.0","method":"Addons.SetAddonEnabled","id":8,"params":{"addonid":"pvr.dvbviewer","enabled":false}}')
Then use
Code:
xbmc-send --action="RunScript(script.whatever)"
I don't do the last part though - I enable via the gui - so the command may not be exactly right RunScript is a built-in function though, so it should work.