How to open dialogaddonsetting for Simple PVR addon
#16
(2019-02-24, 19:44)ontap Wrote: My bad , your right I added it and didn't  test it.
 Solution with python script is very nice solution
Reply
#17
If you don't mind me asking , would you post pic of the line "RunScript" , I only know how to take the line between the brackets from favourites.xml and add it in "home.xml" ,I don't think that is "adding a script " ?
or maybe point me at a post that shows how to do it  the way you have please ?
Reply
#18
No problem we are here to share the solution  Wink

Here are the 3 steps I made it:

1- create python file inside pvr.iptvsmple folder for example (settings.py)

2- paste this code inside settings.py ( import xbmcaddon
xbmcaddon.Addon('pvr.iptvsimple').openSettings() )

3- go to home.xml and create a new item  and direct it to execute the python script like this:
Quote:<item id="31">
                    <description>open PVR setting</description>
                    <label>PVR setting</label>
                   <onclick>XBMC.Runscript(special://home/addons/pvr.iptvsimple/settings.py)</onclick>
 </item>
 
Reply
#19
superb thank you.
Reply

Logout Mark Read Team Forum Stats Members Help
How to open dialogaddonsetting for Simple PVR addon0