prepare moving audio cdtext extraction to seperate plugin
[enigma2.git] / lib / python / Components / MediaPlayer.py
index 50de290..791274f 100644 (file)
@@ -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