Jump to content


Photo

GraphMultiEpg and InfoBarGenerics


  • Please log in to reply
10 replies to this topic

#1 pablocool

  • Senior Member
  • 72 posts

+1
Neutral

Posted 19 April 2014 - 19:18

Hi In 2013 I edited InfoBarGenerics and added such lines 'showGraphEPG': (self.openGraphEPG, _('Graphical Multi EPG')), and def openGraphEPG(self)::

 



    def __init__(self):
        self.is_now_next = False
        self.dlg_stack = []
        self.bouquetSel = None
        self.eventView = None
        self.epglist = []
        self.defaultEPGType = self.getDefaultEPGtype()
        self.defaultGuideType = self.getDefaultGuidetype()
        self.__event_tracker = ServiceEventTracker(screen=self, eventmap={iPlayableService.evUpdatedEventInfo: self.__evEventInfoChanged})
        self['EPGActions'] = HelpableActionMap(self, 'InfobarEPGActions', {'showEventInfo': (self.showDefaultEPG, _('Show EPG...')),
         'showEventInfoSingleEPG': (self.showSingleEPG, _('Show single service EPG')),
         'showEventInfoMultiEPG': (self.showMultiEPG, _('Show multi channel EPG')),
         'showEventInfoPlugin': (self.showEventInfoPlugins, _('List EPG functions...')),
         'showEventGuidePlugin': (self.showEventGuidePlugins, _('List EPG functions...')),
         'showGraphEPG': (self.openGraphEPG, _('Graphical Multi EPG')),
         'showInfobarOrEpgWhenInfobarAlreadyVisible': self.showEventInfoWhenNotVisible})
        return

	def openGraphEPG(self):
		for p in plugins.getPlugins(where = PluginDescriptor.WHERE_EVENTINFO):
			if p.name == _("Graphical Multi EPG"):
				self.runPlugin(p)
				break

Then I was able to use showGraphEPG in keymap.xml to be run from EPG key. I know that I could change default EPG type from openpli menu and connect GraphMultiEPG to 'showEventInfo'. But I dont want to do this because I like  'showEventInfo' to show default "Description for acutal event". It worked great till yesterday when I performed openpli update. InfoBarGenerics changed, so I added my lines to this new decompyled InfoBarGenerics but it causes greenscreen. Maybe someone would know what is te reason for such situation.


Edited by pablocool, 19 April 2014 - 19:20.


Re: GraphMultiEpg and InfoBarGenerics #2 littlesat

  • PLi® Core member
  • 56,123 posts

+685
Excellent

Posted 19 April 2014 - 19:51

This is already possible and configurable in standard openpli... Press long info and/or long epg and choose then last option there... And the press short info and/or epg and see what's happening....

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: GraphMultiEpg and InfoBarGenerics #3 pablocool

  • Senior Member
  • 72 posts

+1
Neutral

Posted 19 April 2014 - 22:39

Thank you but I know this option and this is not exactly what I wanted. I made it up with this:

 

    def __init__(self):
        self.is_now_next = False
        self.dlg_stack = []
        self.bouquetSel = None
        self.eventView = None
        self.epglist = []
        self.defaultEPGType = self.getDefaultEPGtype()
        self.defaultGuideType = self.getDefaultGuidetype()
        self.__event_tracker = ServiceEventTracker(screen=self, eventmap={iPlayableService.evUpdatedEventInfo: self.__evEventInfoChanged})
        self['EPGActions'] = HelpableActionMap(self, 'InfobarEPGActions', {
		 'showEventInfo': (self.openEventInfo, _('Show EPG...')),
         'showEventInfoSingleEPG': (self.showSingleEPG, _('Show single service EPG')),
         'showEventInfoMultiEPG': (self.showMultiEPG, _('Show multi channel EPG')),
         'showEventInfoPlugin': (self.showEventInfoPlugins, _('List EPG functions...')),
         'showEventGuidePlugin': (self.showEventGuidePlugins, _('List EPG functions...')),
         'showGraphEPG': (self.showDefaultEPG, _('Graphical Multi EPG')),
         'showInfobarOrEpgWhenInfobarAlreadyVisible': self.showEventInfoWhenNotVisible})
        return

    def openEventInfo(self):
        self.openEventView()
        return

 

So problem solved



Re: GraphMultiEpg and InfoBarGenerics #4 littlesat

  • PLi® Core member
  • 56,123 posts

+685
Excellent

Posted 19 April 2014 - 22:55

Sorry.... I really do not understand what you want... as the option I gave you does exactly what you want, namely get the GMEPG to the EPG button...

And this without modifying keymap.xml file and modifying InfoBarGenerics.py?????


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: GraphMultiEpg and InfoBarGenerics #5 pablocool

  • Senior Member
  • 72 posts

+1
Neutral

Posted 19 April 2014 - 23:19

You're right on the beginning EPG shows INFOBAR and this is default EPG type. However in keymap.xml I also remapped another key (actually I do not use teletext so I used this key) to show infobar. However on original InfoBarGenerics.py when I change default EPG type to GMEPG my remmaped teletext key which should show infobar also shows GMEPG   :) My solution allows EPG key to show GMEPG and teletex key INFOBAR.

 

Graphically:

Original InfoBarGenerics.py and default EPG type

TELETEXT KEY - > INFOBAR

EPG KEY - > INFOBAR

 

Original InfoBarGenerics.py and GMEPG EPG type

TELETEXT KEY - > GMEPG

EPG KEY - > GMEPG

 

My edited InfoBarGenerics.py and GMEPG EPG type

TELETEXT KEY - > INFOBAR

EPG KEY - > GMEPG

Hope you understood me:)


Edited by pablocool, 19 April 2014 - 23:23.


Re: GraphMultiEpg and InfoBarGenerics #6 littlesat

  • PLi® Core member
  • 56,123 posts

+685
Excellent

Posted 19 April 2014 - 23:22

Infobar = OK????

 

I really do not understand what keys you mixed around?????

 

And still you can keep EPG alone and use teletext for infobar...????


Edited by littlesat, 19 April 2014 - 23:23.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: GraphMultiEpg and InfoBarGenerics #7 pablocool

  • Senior Member
  • 72 posts

+1
Neutral

Posted 19 April 2014 - 23:47

In earlier post I made mistake. I wrote about INFOBAR thinking about  "Current Event EPG".  I doubt you are able to use GMEPG under one button and Current Event EPG under another button.

 

So it should look like

 

Original InfoBarGenerics.py and default EPG type
TELETEXT KEY - > Current Event EPG
EPG KEY - > Current Event EPG

Original InfoBarGenerics.py and GMEPG EPG type
TELETEXT KEY - > GMEPG
EPG KEY - > GMEPG

My edited InfoBarGenerics.py and GMEPG EPG type
TELETEXT KEY - > Current Event EPG
EPG KEY - > GMEPG

 

	<map context="InfobarEPGActions">
		<!--key id="KEY_INFO" mapto="showEventInfo" flags="b" /-->
		<!--key id="KEY_INFO" mapto="showEventInfoPlugin" flags="l" /-->
		<!--key id="KEY_EPG" mapto="showEventInfoSingleEPG" flags="b" /-->
		<!--key id="KEY_EPG" mapto="showEventGuidePlugin" flags="l" /--> <!-- komentarz: wybierz rozszezenie /-->
		<key id="KEY_TEXT" mapto="showEventInfo" flags="l" /> <!-- komentarz: pokazuje podobne transmisje /-->
		<key id="KEY_RED" mapto="showEventInfo" flags="l" />
		<key id="KEY_BLUE" mapto="showEventInfoPlugin" flags="l" /> <!-- komentarz: wybierz rozszezenie /-->
		<key id="KEY_INFO" mapto="showGraphEPG" flags="b" />
		<key id="KEY_INFO" mapto="showEventInfoSingleEPG" flags="l" />
	</map>


Re: GraphMultiEpg and InfoBarGenerics #8 littlesat

  • PLi® Core member
  • 56,123 posts

+685
Excellent

Posted 20 April 2014 - 08:00

Then still you only have to remap the teletext key as info key and keep the epg key as epg key... Then no patch in python code is required.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: GraphMultiEpg and InfoBarGenerics #9 pablocool

  • Senior Member
  • 72 posts

+1
Neutral

Posted 21 April 2014 - 00:29

To be sure we are talking about the same views.

 

By Graph Multi EPG (under EPG key) I mean:

 

GraphMultiEPG.jpg

 

By Current Event EPG (under TELETEXT key) I mean:

 

Current%20Event%20EPG.jpg

 

 

Are you sure that I would achieve that views following your tips? I think (but I am not sure I will check it tommorow) that unfortuately not.



Re: GraphMultiEpg and InfoBarGenerics #10 littlesat

  • PLi® Core member
  • 56,123 posts

+685
Excellent

Posted 21 April 2014 - 06:45

I really understand... And i conclude you only need to change one thing in the keymap for what you try to do...

Edited by littlesat, 21 April 2014 - 06:46.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: GraphMultiEpg and InfoBarGenerics #11 pablocool

  • Senior Member
  • 72 posts

+1
Neutral

Posted 21 April 2014 - 14:35

I believe you but I ve been fighting with keymap.xml file long until I decided to edit py file. Beside setting GMEPG as default EPG type what you suggest to edit in keymap file:

<map context="InfobarEPGActions">
<key id="KEY_INFO" mapto="showEventInfo" flags="b" />
<key id="KEY_INFO" mapto="showEventInfoPlugin" flags="l" />
<key id="KEY_EPG" mapto="showEventInfoSingleEPG" flags="b" />
<key id="KEY_EPG" mapto="showEventGuidePlugin" flags="l" />
</map>


thank you


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users