diff options
| author | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-07-28 08:31:19 +0000 |
|---|---|---|
| committer | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-07-28 08:31:19 +0000 |
| commit | f73d0bc413f59410c44b82437ec8b705a2f9ce76 (patch) | |
| tree | f9422cdc5d2152bb8fe0a696ee47fb8ba61dfbf5 /lib/python/Components | |
| parent | ff97baf8d89605f88443256e0192140e7dc9e41f (diff) | |
| download | enigma2-f73d0bc413f59410c44b82437ec8b705a2f9ce76.tar.gz enigma2-f73d0bc413f59410c44b82437ec8b705a2f9ce76.zip | |
prepare moving audio cdtext extraction to seperate plugin
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/MediaPlayer.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/python/Components/MediaPlayer.py b/lib/python/Components/MediaPlayer.py index 50de290d..791274fc 100644 --- a/lib/python/Components/MediaPlayer.py +++ b/lib/python/Components/MediaPlayer.py @@ -64,6 +64,10 @@ class PlayList(MenuList): 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 |
