Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
How to add EPG menu item in main menu
#1
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!
Reply
#2
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/m...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.
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
#3
Wink 
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!
Reply
#4
Not sure what you mean by the "black rectangle" - can you take a screenshot?
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply

Logout Mark Read Team Forum Stats Members Help
How to add EPG menu item in main menu0