2019-02-05, 04:55
I've also found toggling any PVR add-on (enabled or disabled) with make it refresh.
So, I could have a dummy PVR add-on that isn't actually used and just toggle it enabled to force PVR to refresh.
Feels a bit "hacky" though.
I see there is a demo pvr add-on though.
So, for now I use the below code to force a reload.
So, I could have a dummy PVR add-on that isn't actually used and just toggle it enabled to force PVR to refresh.
Feels a bit "hacky" though.
I see there is a demo pvr add-on though.
So, for now I use the below code to force a reload.
python:xbmc.executebuiltin('InstallAddon(pvr.demo)', True)
xbmc.executeJSONRPC('{"jsonrpc":"2.0","id":1,"method":"Addons.SetAddonEnabled","params":{"addonid":"pvr.demo","enabled":true}}')
xbmc.executeJSONRPC('{"jsonrpc":"2.0","id":1,"method":"Addons.SetAddonEnabled","params":{"addonid":"pvr.demo","enabled":false}}')