autoexec.py to Disable and Enable PVR

  • Dear Community,

    this is my first posting, so Hello Everyone!


    My search on this topic wasn't successful, so here's my first question:

    I want to Disable my pvr after startup,

    and Enable it again.

    I try to write a autoexec.py, I didn test it jet,

    because I do not really know what I am doing here.

    I don want to kill my system.

    I create a autoexec.py format UTF-8 with Gedit on Linux.

    ---------------------------------------------------------------

    import xbmc

    xbmc.executebuiltin('Disable(pvr.iptvsimple)')

    time.sleep(2)

    xbmc.executebuiltin('Enable(pvr.iptvsimple)')

    ---------------------------------------------------------------

    Any special rigths for this .py needed?

    I will copy this into the userdata folder in .kodi

    Is this ok?

    Any mistakes?

    Thanks for your help!

    Have a nice Lockdown :)