Channel Selection Screen

LoveMyDish

Registered
Messages
155
Is there a way when viewing Satellites, to only have it show a satellite once, instead of the

30 - New
30 - Services
30 - Services FTA
30 - Services Providers

I just want to see 30 - Services
 

LoveMyDish

Registered
Messages
155
I finally found the answer to this.

Edit the ChannelSelection.py file. Keep a backup of the original and your modified one, as if you update, you will have to re-copy in your modified one.

Location of file
\root\usr\lib\enigma2\python\Screens\ChannelSelection.py

Search for : (all modifications are made within this function)
def showSatellites(self):

Then below that about 23 lines down you will see
while True:

Add the following line below while True:
show = 0

Search for :
else:
service_type = _("Services")


Add the following line below service_type = _("Services")
show = 200

Search for :
self.servicelist.addService(service)

change to this :
if show >=200:
self.servicelist.addService(service)​

Thats it. You have basically added 3 lines
this way it only shows the Services.\

Make sure you keep the indents correct! If you screw up the script, you will know because it will crash. It means you don't have your indents correct.

You can also change this line
service.setName("%s - %s" % (service_name, service_type))
to this
service.setName("%s" % (service_name))

That will get rid of it showing - Services at the end of the description being your not showing more than one type now.
 
Last edited:

WS460

Registered
Messages
10
Another question. Is there an easy way to see the frequency and polarization in the Channel Selection Screens. Or even better, to show the channels sorted by frequency in that screens additionally, too.
 
Top