git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add pluginlist reload, fix type (thx to Ali Abdul)
[enigma2.git]
/
lib
/
python
/
Components
/
MediaPlayer.py
diff --git
a/lib/python/Components/MediaPlayer.py
b/lib/python/Components/MediaPlayer.py
index 50de290dfbfc19eee91586205cf07e107fa8c56a..87ba977c0cbc9dba8ff39389289da66a9a52d6d7 100644
(file)
--- a/
lib/python/Components/MediaPlayer.py
+++ b/
lib/python/Components/MediaPlayer.py
@@
-40,7
+40,7
@@
def PlaylistEntryComponent(serviceref, state):
if png is not None:
res.append((eListboxPythonMultiContent.TYPE_PIXMAP_ALPHATEST, 5, 0, 16, 16, png))
if png is not None:
res.append((eListboxPythonMultiContent.TYPE_PIXMAP_ALPHATEST, 5, 0, 16, 16, png))
-
+
return res
class PlayList(MenuList):
return res
class PlayList(MenuList):
@@
-64,6
+64,10
@@
class PlayList(MenuList):
def addFile(self, serviceref):
self.list.append(PlaylistEntryComponent(serviceref, STATE_NONE))
def addFile(self, serviceref):
self.list.append(PlaylistEntryComponent(serviceref, STATE_NONE))
+ def updateFile(self, index, newserviceref):
+ if index < len(self.list):
+ self.list[index] = PlaylistEntryComponent(newserviceref, STATE_NONE)
+
def deleteFile(self, index):
if self.currPlaying >= index:
self.currPlaying -= 1
def deleteFile(self, index):
if self.currPlaying >= index:
self.currPlaying -= 1
@@
-72,6
+76,7
@@
class PlayList(MenuList):
def setCurrentPlaying(self, index):
self.oldCurrPlaying = self.currPlaying
self.currPlaying = index
def setCurrentPlaying(self, index):
self.oldCurrPlaying = self.currPlaying
self.currPlaying = index
+ self.moveToIndex(index)
def updateState(self, state):
if len(self.list) > self.oldCurrPlaying and self.oldCurrPlaying != -1:
def updateState(self, state):
if len(self.list) > self.oldCurrPlaying and self.oldCurrPlaying != -1: