ChannelNumber: just a minor optimalization
authorLittlesat <littlesat99@yahoo.com>
Thu, 26 Jul 2012 18:22:42 +0000 (20:22 +0200)
committerLittlesat <littlesat99@yahoo.com>
Thu, 26 Jul 2012 18:22:42 +0000 (20:22 +0200)
lib/python/Components/Renderer/ChannelNumber.py

index edd6c2f..1478c57 100644 (file)
@@ -29,11 +29,10 @@ class ChannelNumber(Renderer, VariableText):
                self.text = "---"
                service = self.source.service
                if service and service.info():
-                       serviceHandler = eServiceCenter.getInstance()
                        CurrentServiceList = InfoBar.instance.servicelist
                        root = CurrentServiceList.servicelist.getRoot()
                        if 'userbouquet.' in root.toCompareString():
-                               services = serviceHandler.list(root)
+                               services = eServiceCenter.getInstance().list(root)
                                channels = services and services.getContent("SN", True)
                                channelIndex = CurrentServiceList.servicelist.l.lookupService(CurrentServiceList.servicelist.getCurrent())
                                markersCounter = 0