diff options
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/MovieList.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/python/Components/MovieList.py b/lib/python/Components/MovieList.py index 25c32b66..dfd419fb 100644 --- a/lib/python/Components/MovieList.py +++ b/lib/python/Components/MovieList.py @@ -25,14 +25,17 @@ RT_WRAP = 32 # | name of movie | # def MovieListEntry(serviceref, serviceHandler): + if serviceref.flags & eServiceReference.mustDescent: + return None + info = serviceHandler.info(serviceref) if info is None: # ignore service which refuse to info - return + return None len = info.getLength(serviceref) - if len: + if len > 0: len = "%d:%02d" % (len / 60, len % 60) else: len = "?:??" @@ -112,7 +115,9 @@ class MovieList(HTMLComponent, GUIComponent): # now process them... for ref in movieList: - self.list.append(MovieListEntry(ref, serviceHandler)) + a = MovieListEntry(ref, serviceHandler) + if a is not None: + self.list.append(a) self.list.sort(key=lambda x: -x[0][1]) |
