2023-03-27, 03:27
Hi,
I have two pvr: iptvsimple and pvr.zattooo.
Sometimes the pvr.manager loads only pvrzattoo and not the iptvsimple.
This one is a python script that reboot the iptvsimple. I'd like to add a part in the code that the pvrmanager check if there is really both lists in kodi and if not to reboot the iptvsimple. Do you have some ideas if is possible??
Thank you
I have two pvr: iptvsimple and pvr.zattooo.
Sometimes the pvr.manager loads only pvrzattoo and not the iptvsimple.
This one is a python script that reboot the iptvsimple. I'd like to add a part in the code that the pvrmanager check if there is really both lists in kodi and if not to reboot the iptvsimple. Do you have some ideas if is possible??
Thank you
python:import xbmc, time
#return to homescreen
xbmc.executebuiltin('ActivateWindow(home)')
#sleep long enough for the home screen to come up
time.sleep(2)
#stop PVR addon
xbmc.executeJSONRPC('{"jsonrpc":"2.0", "method":"Addons.SetAddonEnabled", "params":{ "addonid": "pvr.iptvsimple", "enabled": false }, "id":1}')
#start PVR addon
xbmc.executeJSONRPC('{"jsonrpc":"2.0", "method":"Addons.SetAddonEnabled", "params":{ "addonid": "pvr.iptvsimple", "enabled": true }, "id":1}')