Kodi Community Forum
Solved Adding TV Guide button to the Home Screen - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+--- Thread: Solved Adding TV Guide button to the Home Screen (/showthread.php?tid=159961)



Adding TV Guide button to the Home Screen - User 162284 - 2013-03-21

Hi,
I'm trying to add a button that will lunch TV Guide directly from the Home Screen and I'm failing. I'm using stock Confulence on XBMC 11.
I added the following to the Home.xml

Code:
<item id="99">
   <label>TV Guide</label>
   <icon>special://skin/backgrounds/videos.jpg</icon>
   <onclick>ActivateWindow(Programs,Addons,TV Guide)</onclick>
   <icon>-</icon>
   <thumb>-</thumb>
</item>

It will take me to the PROGRAMS but I still need to click on TV Guide. I also tried this:

Code:
<onclick>XBMC.RunScript(/home/nozyczek/.xbmc/addons/script.tvguide/service.py)</onclick>
but no go.
I would really appreciate if you could help me out.
Thank you


RE: Adding TV Guide button to the Home Screen - artrafael - 2013-03-21

Welcome to the XBMC forums.

Try the following:
  1. Select PROGRAMS on the homepage
  2. Highlight the TV Guide add-on, open its context menu (keyboard "c" or right mouse click) and select "Add to favourites"
  3. Locate and open your favourites.xml (wiki) file in your userdata (wiki) directory using a text editor
  4. The last statement in the file should be the one for the favourite you just added for the TV Guide add-on. Copy the text that is in between the <favourite name=...> and </favourite> tags on that statement and paste it in between the <onclick> and </onclick> tags of your Home.xml file.



RE: Adding TV Guide button to the Home Screen - User 162284 - 2013-03-21

Brilliant !

Code:
<item id="99">
   <label>TV Guide</label>
   <icon>special://skin/backgrounds/videos.jpg</icon>
   <onclick>RunScript(script.tvguide)</onclick>
   <icon>-</icon>
   <thumb>-</thumb>
</item>

Thank You !