Add service name to title of single EPG
authorlittlesat <littlesat99@yahoo.com>
Mon, 4 Jan 2016 22:16:36 +0000 (23:16 +0100)
committerlittlesat <littlesat99@yahoo.com>
Mon, 4 Jan 2016 22:16:36 +0000 (23:16 +0100)
Currently it could be the service name was indicated over the title. It
might also be some skins need to adapt.

lib/python/Screens/EpgSelection.py

index b6c7740..7c0cf26 100644 (file)
@@ -198,10 +198,9 @@ class EPGSelection(Screen):
                elif self.type == EPG_TYPE_SINGLE:
                        service = self.currentService
                        self["Service"].newService(service.ref)
-                       if self.saved_title is None:
+                       if not self.saved_title:
                                self.saved_title = self.instance.getTitle()
-                       title = self.saved_title + ' - ' + service.getServiceName()
-                       self.instance.setTitle(title)
+                       self.setTitle(self.saved_title + ' - ' + service.getServiceName())
                        l.fillSingleEPG(service)
                else:
                        l.fillSimilarList(self.currentService, self.eventid)