aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/MediaPlayer.py
diff options
context:
space:
mode:
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-07-28 08:31:19 +0000
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-07-28 08:31:19 +0000
commitf73d0bc413f59410c44b82437ec8b705a2f9ce76 (patch)
treef9422cdc5d2152bb8fe0a696ee47fb8ba61dfbf5 /lib/python/Components/MediaPlayer.py
parentff97baf8d89605f88443256e0192140e7dc9e41f (diff)
downloadenigma2-f73d0bc413f59410c44b82437ec8b705a2f9ce76.tar.gz
enigma2-f73d0bc413f59410c44b82437ec8b705a2f9ce76.zip
prepare moving audio cdtext extraction to seperate plugin
Diffstat (limited to 'lib/python/Components/MediaPlayer.py')
-rw-r--r--lib/python/Components/MediaPlayer.py4
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