Skip to content

Relative files names with square brackets are ignored in M3U playlist files

When opening a M3U playlist containing relative pathnames - that is: not starting with file:// - the songs whose pathname contains a square bracket are simply ignored.

Example:

../../archive/Soft Cell/2001 - Non-stop erotic cabaret [remastered]/(Soft Cell) Sex dwarf.mp3
../../archive/Garbage/2002 - Garbage/(Garbage) As Heaven is wide.mp3

The first song is completely skipped and does not appear in the playlist.

Re-writing the pathname using file:// works but this forces to use a full path name, while we want to keep the relative one.

This has been seen on a machine running:

  • Manjaro/KDE (amd64)

  • VLC v3.0.1-0-gec0f700f AND v3.0.2

  • Steps to reproduce: just drag & drop a M3U file crafted as in the attached example. It is not important to actually have the referenced songs in place: you'll see that the songs with [] in their name are ignored.

  • Reproducibility: every time.

  • Type/Format: MP3 audio file

  • Attachments:

  • example M3U file

  • console logs from the moment the file was dropped on the VLC window. You can see that there is no mention of the first song.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information