Does exist there in E2 some routine, how fill "list" in plugin with services from current bouquet ? Not whole EPG.
How fill list with services from current bouquet ?
Started by ims, 03 Feb 2012 13:07
7 replies to this topic
Re: How fill list with services from current bouquet ? #2
Re: How fill list with services from current bouquet ? #3
Re: How fill list with services from current bouquet ? #4
Re: How fill list with services from current bouquet ? #5
Re: How fill list with services from current bouquet ? #6
Re: How fill list with services from current bouquet ? #7
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
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í!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users