git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
avswitch: reset video mode only when it has changed
[enigma2.git]
/
lib
/
python
/
Components
/
MovieList.py
diff --git
a/lib/python/Components/MovieList.py
b/lib/python/Components/MovieList.py
index 25c32b663c4c5e4b7360f76659865aad358ea4af..dfd419fbd772f3893723a4d8dbc2b227c8a663b5 100644
(file)
--- 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):
# | 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
info = serviceHandler.info(serviceref)
if info is None:
# ignore service which refuse to info
- return
+ return
None
len = info.getLength(serviceref)
len = info.getLength(serviceref)
- if len:
+ if len
> 0
:
len = "%d:%02d" % (len / 60, len % 60)
else:
len = "?:??"
len = "%d:%02d" % (len / 60, len % 60)
else:
len = "?:??"
@@
-112,7
+115,9
@@
class MovieList(HTMLComponent, GUIComponent):
# now process them...
for ref in movieList:
# 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])
self.list.sort(key=lambda x: -x[0][1])