aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/MovieList.py
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-12-21 22:04:56 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-12-21 22:04:56 +0000
commiteb47577c32b49a28eb7986b0fd86ed0d76207150 (patch)
treed7b2d5c2cfdf78b822d501aba3e66f5bfa14400e /lib/python/Components/MovieList.py
parent1b1a1efbe9a61b6f05d46821b4d22f8e5c84a931 (diff)
downloadenigma2-eb47577c32b49a28eb7986b0fd86ed0d76207150.tar.gz
enigma2-eb47577c32b49a28eb7986b0fd86ed0d76207150.zip
move the movie selector to the currently playing movie
Diffstat (limited to 'lib/python/Components/MovieList.py')
-rw-r--r--lib/python/Components/MovieList.py10
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)