diff options
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/MovieList.py | 10 |
1 files changed, 10 insertions, 0 deletions
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) |
