Pirlouwi wrote: > I received from a friend a dvd full of mp3. Difficult to take control of > so much mp3 files. > But fortunatelly, there is a lot of m3u. > The problem is that this dvd has been created under Windows. > The path separating character is, as you know, letter '\'. > This means that all m3u files located on this compilation dvd are > unusable from freevo. And it is read-only, so I cannot modify '\' into '/'. > > It should be quite easy to add a regex to modify the content of .m3u > files just after reading it (and caching it I suppose)? Isn't it? > Can this be considered as a bug, or is it a feature request?
>From the playlist module the m3u files are checked for a '\r\n' and if found then backslashes are converted to forward slashes, so it should work. This means that if you are not getting your m3u files to work then they don't have a cr/lf at the end of the line. You can check this with: od -c /path/to/m3u You can try this patch: Index: src/playlist.py =================================================================== --- src/playlist.py (revision 9621) +++ src/playlist.py (working copy) @@ -107,8 +107,7 @@ (curdir, playlistname) = os.path.split(plsname) for line in playlist_lines: - if line.endswith('\r\n'): - line = line.replace('\\', '/') # Fix MSDOS slashes + line = line.replace('\\', '/') # Fix MSDOS slashes try: if os.path.exists(os.path.join(curdir,line)): self.playlist.append(os.path.join(curdir,line)) Duncan ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users