aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/MovieList.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-02-15 01:19:16 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-02-15 01:19:16 +0000
commitb62474db510d8ffea6d3501bdb6f96a0cb15d180 (patch)
tree4c82ed9995087731156484bc65e5e532b7ed2a31 /lib/python/Components/MovieList.py
parent80453c6467be812555d6839aa37adc83a2c69708 (diff)
downloadenigma2-b62474db510d8ffea6d3501bdb6f96a0cb15d180.tar.gz
enigma2-b62474db510d8ffea6d3501bdb6f96a0cb15d180.zip
skip directories
Diffstat (limited to 'lib/python/Components/MovieList.py')
-rw-r--r--lib/python/Components/MovieList.py11
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])