git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
70dfd18
)
Follow API improvements
author
Felix Domke
<tmbinc@elitedvb.net>
Sat, 15 Oct 2005 20:13:45 +0000
(20:13 +0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Sat, 15 Oct 2005 20:13:45 +0000
(20:13 +0000)
lib/python/Components/MovieList.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/MovieList.py
b/lib/python/Components/MovieList.py
index 5b07791fbdff22927138515683d3c2b3c2d75acf..ecf50607de61beae12402c27014f58cf1676dcfa 100644
(file)
--- a/
lib/python/Components/MovieList.py
+++ b/
lib/python/Components/MovieList.py
@@
-7,8
+7,6
@@
from enigma import eServiceReference, eServiceCenter, \
eServiceCenterPtr, iListableServicePtr, \
iStaticServiceInformationPtr
eServiceCenterPtr, iListableServicePtr, \
iStaticServiceInformationPtr
-
-
RT_HALIGN_LEFT = 0
RT_HALIGN_RIGHT = 1
RT_HALIGN_CENTER = 2
RT_HALIGN_LEFT = 0
RT_HALIGN_RIGHT = 1
RT_HALIGN_CENTER = 2
@@
-27,11
+25,10
@@
RT_WRAP = 32
def MovieListEntry(serviceref, serviceHandler):
res = [ serviceref ]
def MovieListEntry(serviceref, serviceHandler):
res = [ serviceref ]
- info =
iStaticServiceInformationPtr(
)
-
- if
serviceHandler.info(serviceref, info)
:
+ info =
serviceHandler.info(serviceref
)
+
+ if
info is None
:
# ignore service which refuse to info
# ignore service which refuse to info
- del info
return
len = info.getLength(serviceref)
return
len = info.getLength(serviceref)
@@
-74,11
+71,10
@@
class MovieList(HTMLComponent, GUIComponent):
self.list = [ ]
self.list = [ ]
- serviceHandler = eServiceCenterPtr()
- eServiceCenter.getInstance(serviceHandler)
- list = iListableServicePtr()
+ serviceHandler = eServiceCenter.getInstance()
+ list = serviceHandler.list(root)
- if
serviceHandler.list(root, list)
:
+ if
list is None
:
raise "listing of movies failed"
movieList = [ ]
raise "listing of movies failed"
movieList = [ ]