handle additional arguments
authorFelix Domke <tmbinc@elitedvb.net>
Mon, 10 Jul 2006 16:20:55 +0000 (16:20 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Mon, 10 Jul 2006 16:20:55 +0000 (16:20 +0000)
lib/python/Components/Converter/ServiceInfo.py
lib/python/Components/Converter/ServiceName.py

index 413aa19..4b266fe 100644 (file)
@@ -61,3 +61,8 @@ class ServiceInfo(Converter, object):
                        return subservices and subservices.getNumberOfSubservices() > 0
 
        boolean = property(getBoolean)
                        return subservices and subservices.getNumberOfSubservices() > 0
 
        boolean = property(getBoolean)
+
+       def changed(self, *args):
+               if not len(args) or args[0] in [iPlayableService.evStart, iPlayableService.evEnd, 
+                       iPlayableService.evUpdatedInfo, iPlayableService.evUpdatedEventInfo]:
+                       Converter.changed(self)
index 094dbdf..77647dd 100644 (file)
@@ -1,5 +1,5 @@
 from Components.Converter.Converter import Converter
 from Components.Converter.Converter import Converter
-from enigma import iServiceInformation
+from enigma import iServiceInformation, iPlayableService
 
 class ServiceName(Converter, object):
        NAME = 0
 
 class ServiceName(Converter, object):
        NAME = 0
@@ -30,3 +30,7 @@ class ServiceName(Converter, object):
                        return self.getServiceInfoValue(info, iServiceInformation.sProvider)
 
        text = property(getText)
                        return self.getServiceInfoValue(info, iServiceInformation.sProvider)
 
        text = property(getText)
+
+       def changed(self, *args):
+               if not len(args) or args[0] in [iPlayableService.evStart, iPlayableService.evEnd]:
+                       Converter.changed(self)