How to import .m3u playlist exported from Windows

I exported my my iTunes playlists to .m3u files before I got rid of Windows 7 completely.

Now I would like to import the playlists into Rhythmbox, but can't. My playlists contain Windows file names (e.g. D:\music....) instead of Linux file names (e.g. /mnt/music....).

The music is still stored on the exact same disk and folder as it was under Windows.

I need a script to convert the file names, can anyone help?


Ok, thanks Jos. I had a good look at the file and it is as simple as a find and replace in the original .m3u file.

  1. Edit the .m3u file with a text editor, e.g., gedit

  2. Replace the first part of each music file in the playlist file, e.g., D:\music, with /mnt/music.

  3. Replace the remaining \ with /.

  4. Save the file.

  5. In Rhythmbox, click the plus sign (+) below Playlists and navigate to the edited .m34 file(s).