Jump to content


Photo

How fill list with services from current bouquet ?


  • Please log in to reply
7 replies to this topic

#1 ims

  • PLi® Core member
  • 13,625 posts

+212
Excellent

Posted 3 February 2012 - 13:07

Does exist there in E2 some routine, how fill "list" in plugin with services from current bouquet ? Not whole EPG.
Kdo nic nedělá, nic nezkazí!

Re: How fill list with services from current bouquet ? #2 mirakels

  • Forum Moderator
    PLi® Core member
  • 7,599 posts

+62
Good

Posted 3 February 2012 - 14:36

something like:

Servicelist = eServiceCenter.getInstance().list(bouquet)
Geen wonder... Had slechts een dm7000, maar wel ook een rotor. eigenlijk al een tijdje ook een dm600 en dm7025. Maar nu kijkend met een et9000 en vuduo

Re: How fill list with services from current bouquet ? #3 ims

  • PLi® Core member
  • 13,625 posts

+212
Excellent

Posted 3 February 2012 - 19:14

Thanks. I found it yet in code.
Kdo nic nedělá, nic nezkazí!

Re: How fill list with services from current bouquet ? #4 ims

  • PLi® Core member
  • 13,625 posts

+212
Excellent

Posted 4 February 2012 - 11:23

Why I get with:
self.session.nav.getCurrentlyPlayingServiceReference().toString()
for Film+ on 23.5E still: 1:0:1:332E:C89:3:EB0000:0:0:0::Film+

Same it is for this service there in Menu -> Information->Service
Kdo nic nedělá, nic nezkazí!

Re: How fill list with services from current bouquet ? #5 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 4 February 2012 - 11:38

you mean you don't want the name part of the serviceref?
I think you'll have to split the fields, and drop the fields you don't need (see what I did in the picon renderer for instance)

Re: How fill list with services from current bouquet ? #6 ims

  • PLi® Core member
  • 13,625 posts

+212
Excellent

Posted 4 February 2012 - 11:50

Yes, I want not there :Film+. But why it returns it true for all others service and for Film+ does'n ? Does make it "+" char in name ?

I make it some as:
  n = refstr.rfind(':')
  return refstr[:n].rstrip(':').replace(':','_')

Kdo nic nedělá, nic nezkazí!

Re: How fill list with services from current bouquet ? #7 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 4 February 2012 - 11:56

Yes, I want not there :Film+. But why it returns it true for all others service and for Film+ does'n ? Does make it "+" char in name ?


no, it's probably just a matter of whether the name is present in the lamedb or not.

I make it some as:

  n = refstr.rfind(':')
  return refstr[:n].rstrip(':').replace(':','_')


I'd split the fields, and use the correct number of fields up to the path and name.
Something like what the picon renderer does.

Re: How fill list with services from current bouquet ? #8 ims

  • PLi® Core member
  • 13,625 posts

+212
Excellent

Posted 5 February 2012 - 12:13

something like:

Servicelist = eServiceCenter.getInstance().list(bouquet)


but when I call plugin from WHERE_PLUGINMENU,
def main(session, servicelist=None, **kwargs):
global Servicelist
Servicelist = servicelist
global epg_bouquet
epg_bouquet = Servicelist and Servicelist.getRoot()
if epg_bouquet is not None:
  services = getBouquetServices(epg_bouquet)
  session.open(setPicon, plugin_path, services, ServiceReference(epg_bouquet).getServiceName())
then is servicelist always empty. From WHERE_EXTENSIONSMENU it works.
Kdo nic nedělá, nic nezkazí!


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users