fix fillSimilarList
authorFelix Domke <tmbinc@elitedvb.net>
Mon, 30 Jul 2007 22:14:29 +0000 (22:14 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Mon, 30 Jul 2007 22:14:29 +0000 (22:14 +0000)
lib/python/Components/EpgList.py

index 1bc98ef..ee00ce9 100644 (file)
@@ -247,7 +247,7 @@ class EPGList(HTMLComponent, GUIComponent):
                        return
                l = self.epgcache.search(('RIBND', 1024, eEPGCache.SIMILAR_BROADCASTINGS_SEARCH, refstr, event_id))
                if l and len(l):
                        return
                l = self.epgcache.search(('RIBND', 1024, eEPGCache.SIMILAR_BROADCASTINGS_SEARCH, refstr, event_id))
                if l and len(l):
-                       l.sort(self.sort_func)
+                       l.sort(key=lambda x: x[2])
                self.l.setList(l)
                self.selectionChanged()
                print time() - t
                self.l.setList(l)
                self.selectionChanged()
                print time() - t