X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FSources%2FServiceList.py;h=91a6866e08536dc597b32b0690e7592ed97dcb06;hb=b3135c06dd527e0ed65b6ffa921f830132f7d8b9;hp=4d184152d36d33b383f17cc39bcfa9f1cdbab02c;hpb=d4c326ff3537c63c2a7fac1fec98fb08bed0f0ee;p=vuplus_dvbapp diff --git a/lib/python/Components/Sources/ServiceList.py b/lib/python/Components/Sources/ServiceList.py index 4d18415..91a6866 100644 --- a/lib/python/Components/Sources/ServiceList.py +++ b/lib/python/Components/Sources/ServiceList.py @@ -2,10 +2,11 @@ from Source import Source from enigma import eServiceCenter, eServiceReference class ServiceList(Source): - def __init__(self, root, command_func = None): + def __init__(self, root, command_func = None, validate_commands = True): Source.__init__(self) self.root = root self.command_func = command_func + self.validate_commands = validate_commands def getServicesAsList(self, format = "SN"): services = self.getServiceList() @@ -34,7 +35,7 @@ class ServiceList(Source): def handleCommand(self, cmd): print "ServiceList handle command" - if not self.validateReference(cmd): + if self.validate_commands and not self.validateReference(cmd): print "Service reference did not validate!" return