Kodi Community Forum
Issue handling two pvrs with pvrmanager - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: PVR & Live TV Support (https://forum.kodi.tv/forumdisplay.php?fid=167)
+--- Thread: Issue handling two pvrs with pvrmanager (/showthread.php?tid=372735)



Issue handling two pvrs with pvrmanager - ulissess - 2023-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

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}')



RE: Issue handling two pvrs with pvrmanager - phunkyfish - 2023-06-01

Why do you need to restart iptvsimple?