Kodi Community Forum
How to add EPG menu item in main menu - 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)
+---- Forum: Skin Archive (https://forum.kodi.tv/forumdisplay.php?fid=179)
+----- Forum: Ace 2 (https://forum.kodi.tv/forumdisplay.php?fid=190)
+----- Thread: How to add EPG menu item in main menu (/showthread.php?tid=169212)



How to add EPG menu item in main menu - jdw26 - 2013-07-16

I posted this yesterday in the general ace release thread, but think it is better to make a separate thread about it. (otherwise quickly buried under other posts :-)

I am extremely happy with the ACE skin, but see some optimizations with Live TV (using ArgusTV right now). The way how Live TV is implemented right now in XBMC is that it is one big add-on with multiple sub-functionalities underneath: timers, EPG, recordings, radio etc. Currently if you want to check out the EPG and you are on the main menu, you first need to select the Live TV menu item, and then in the Live TV screen, press the right arrow key so you can select the EPG tab (requires multiple clicks as well). Think this is pretty cumbersome, for me it would be much easier to move the recordings and EPG directly on the main menu. I have been successful to do this for the recordings, and now I am looking for a way to extend this also for the EPG.

So in the end I want a main menu like this:

LiveTV
Recordings: I have added this menu myself - it is a video node pointing to the folder containing the recordings. I am using this since the "recordings screen" under the LiveTV does not update automatically when recordings are being added since startup. So this is a kind of work around.
EPG: this is where I want to point directly to the EPG window. With Aeon Nox I have been able to do that via a custom menu item.
Movies
TV Shows
Concerts
Settings
Exit

Would be very nice if I could do that or if that would become possible in the future. My current workaround is that I use dedicated buttons on the remote control for this.

Besides that: very good job!


RE: How to add EPG menu item in main menu - el_Paraguayo - 2013-07-18

Map the following to a spare key:
PHP Code:
XBMC.ActivateWindowAndFocus(MyPVR31,010,0
That should get you to EPG.

See this page: https://github.com/opdenkamp/xbmc/blob/master/system/keymaps/remote.xml


EDIT: re-read your post and see you want to add it as a main menu item - I'll have a try on this tonight and report back. I just use a remote button for it.


RE: How to add EPG menu item in main menu - jdw26 - 2013-07-18

Thanks for your response. Indeed I want to add the EPG as an item to the main menu, not add a new button function to my remote control (which I have done already and is working fine by the way Wink

Your post has inspired me however and I have looked into a lot of posts. Now I have something working - although with some side effects.

First I have enabled the custom menu Menu 1. Then in the file IncludesVIPMenu.xml, I have put in the following content:

<item id="10"><!-- Meu Menu 1 -->
<label fallback="31075">$INFO[skin.string(mymenu1.label)]</label>
<label2>GUIDE</label2>
<icon fallback="special://skin/backgrounds/mymenu.jpg">$VAR[value_mainmenubg_mymenu1]</icon>
<onclick>ActivateWindowAndFocus(MyPVR, 31, 0, 10, 0)</onclick>
<visible>SubString(skin.string(mymenu1.menu),on)</visible>
</item>

In this way I succeeded in adding the EPG item. Only problem I still have is that a black rectangle is displayed when I move over the EPG item. Maybe this has got to do with a wrong icon path. Any idea where I can find good documentation about the structure/symantics of this xml file?

An even more happy Ace user!


RE: How to add EPG menu item in main menu - el_Paraguayo - 2013-07-18

Not sure what you mean by the "black rectangle" - can you take a screenshot?