service: add sort of servicelist including all required layers
[enigma2.git] / lib / python / Components / MovieList.py
index 003302b..5b07791 100644 (file)
@@ -83,9 +83,8 @@ class MovieList(HTMLComponent, GUIComponent):
 
                movieList = [ ]
                while 1:
-                       s = eServiceReference()
-                       if list.getNext(s):
-                               del s
+                       s = list.getNext()
+                       if not s.valid():
                                del list
                                break
                        movieList.append(s)