prepare moving audio cdtext extraction to seperate plugin
[enigma2.git] / lib / python / Components / MediaPlayer.py
index 50de290dfbfc19eee91586205cf07e107fa8c56a..791274fcfa12d3f6e323dd580149f82ddac147a0 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