From eb47577c32b49a28eb7986b0fd86ed0d76207150 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Wed, 21 Dec 2005 22:04:56 +0000 Subject: move the movie selector to the currently playing movie --- lib/python/Components/MovieList.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/python/Components') diff --git a/lib/python/Components/MovieList.py b/lib/python/Components/MovieList.py index 7121772c..3c5f7e24 100644 --- a/lib/python/Components/MovieList.py +++ b/lib/python/Components/MovieList.py @@ -1,6 +1,7 @@ from HTMLComponent import * from GUIComponent import * from Tools.FuzzyDate import FuzzyTime +from ServiceReference import ServiceReference from enigma import eListboxPythonMultiContent, eListbox, gFont, iServiceInformation @@ -105,6 +106,15 @@ class MovieList(HTMLComponent, GUIComponent): # now process them... for ref in movieList: self.list.append(MovieListEntry(ref, serviceHandler)) + + def moveTo(self, serviceref): + found = 0 + count = 0 + for x in self.list: + if str(ServiceReference(x[0])) == str(ServiceReference(serviceref)): + found = count + count += 1 + self.instance.moveSelectionTo(found) def reload(self): self.load(self.root) -- cgit v1.2.3