1 from enigma import eServiceCenter, eServiceReference
3 def getAlternativeChannels(service):
4 alternativeServices = eServiceCenter.getInstance().list(eServiceReference(service))
5 return alternativeServices and alternativeServices.getContent("S", True)
7 def CompareWithAlternatives(service,serviceToCompare):
8 if service == serviceToCompare:
10 if service.startswith('1:134:'):
11 for channel in getAlternativeChannels(service):
12 if channel == serviceToCompare:
16 def GetWithAlternative(service):
17 if service.startswith('1:134:'):
18 channels = getAlternativeChannels(service)