change .e2 to .e2pls
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sun, 18 Jun 2006 22:47:58 +0000 (22:47 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sun, 18 Jun 2006 22:47:58 +0000 (22:47 +0000)
lib/python/Screens/MediaPlayer.py
lib/service/servicefs.cpp

index 43658c8..39d7ab9 100644 (file)
@@ -30,9 +30,9 @@ class MediaPlayer(Screen, InfoBarSeek):
                self.playlistparsers = {}
                self.addPlaylistParser(PlaylistIOM3U, "m3u")
                self.addPlaylistParser(PlaylistIOPLS, "pls")
                self.playlistparsers = {}
                self.addPlaylistParser(PlaylistIOM3U, "m3u")
                self.addPlaylistParser(PlaylistIOPLS, "pls")
-               self.addPlaylistParser(PlaylistIOInternal, "e2")
+               self.addPlaylistParser(PlaylistIOInternal, "e2pls")
 
 
-               self.filelist = FileList(resolveFilename(SCOPE_MEDIA), matchingPattern = "^.*\.(mp3|ogg|ts|wav|wave|m3u|pls|e2)", useServiceRef = True)
+               self.filelist = FileList(resolveFilename(SCOPE_MEDIA), matchingPattern = "^.*\.(mp3|ogg|ts|wav|wave|m3u|pls|e2pls)", useServiceRef = True)
                self["filelist"] = self.filelist
 
                self.playlist = PlayList()
                self["filelist"] = self.filelist
 
                self.playlist = PlayList()
@@ -131,7 +131,7 @@ class MediaPlayer(Screen, InfoBarSeek):
                self.currList = "filelist"
                
                self.playlistIOInternal = PlaylistIOInternal()
                self.currList = "filelist"
                
                self.playlistIOInternal = PlaylistIOInternal()
-               list = self.playlistIOInternal.open(resolveFilename(SCOPE_CONFIG, "playlist.e2"))
+               list = self.playlistIOInternal.open(resolveFilename(SCOPE_CONFIG, "playlist.e2pls"))
                if list:
                        for x in list:
                                self.playlist.addFile(x.ref)
                if list:
                        for x in list:
                                self.playlist.addFile(x.ref)
@@ -144,7 +144,7 @@ class MediaPlayer(Screen, InfoBarSeek):
                self.playlistIOInternal.clear()
                for x in self.playlist.list:
                        self.playlistIOInternal.addService(ServiceReference(x[0]))
                self.playlistIOInternal.clear()
                for x in self.playlist.list:
                        self.playlistIOInternal.addService(ServiceReference(x[0]))
-               self.playlistIOInternal.save(resolveFilename(SCOPE_CONFIG, "playlist.e2"))
+               self.playlistIOInternal.save(resolveFilename(SCOPE_CONFIG, "playlist.e2pls"))
                self.close()
        
        def checkSkipShowHideLock(self):
                self.close()
        
        def checkSkipShowHideLock(self):
index 4c1e5bd..8e5b729 100644 (file)
@@ -145,7 +145,7 @@ RESULT eServiceFS::getContent(std::list<eServiceReference> &list, bool sorted)
                                type = 4097;
                        else if (extension == ".wav" || extension == ".wave")
                                type = 4097;
                                type = 4097;
                        else if (extension == ".wav" || extension == ".wave")
                                type = 4097;
-                       else if (extension == ".m3u" || extension == ".pls" || extension == ".e2")
+                       else if (extension == ".m3u" || extension == ".pls" || extension == ".e2pls")
                                type = 4098;
                        
                        if (type != -1)
                                type = 4098;
                        
                        if (type != -1)