fix showing timer symbol in epglist..
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sat, 11 Mar 2006 01:15:52 +0000 (01:15 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sat, 11 Mar 2006 01:15:52 +0000 (01:15 +0000)
lib/python/Components/EpgList.py

index d2d9f1c..f2003f5 100644 (file)
@@ -142,7 +142,7 @@ class EPGList(HTMLComponent, GUIComponent):
                                self.descr_rect = Rect(xpos, 0, width, height)
 
        def buildSingleEntry(self, eventId, beginTime, duration, EventName):
                                self.descr_rect = Rect(xpos, 0, width, height)
 
        def buildSingleEntry(self, eventId, beginTime, duration, EventName):
-               rec=(self.timer.isInTimer(eventid=eventId, begin=beginTime, duration=duration, service=self.service) > 0)
+               rec=(self.timer.isInTimer(eventid=eventId, begin=beginTime, duration=duration, service=self.service) > ((duration/10)*8)) 
                r1=self.datetime_rect
                r2=self.descr_rect
                res = [ None ]  # no private data needed
                r1=self.datetime_rect
                r2=self.descr_rect
                res = [ None ]  # no private data needed