M3U track not loading if relative path contains square brackets

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
ThomasR
New Cone
New Cone
Posts: 5
Joined: 11 Jan 2021 20:43

M3U track not loading if relative path contains square brackets

Postby ThomasR » 13 Jan 2021 20:33

Hey everyone!

I'm guessing this is a bug:
In a M3U playlist, any relative path that contains a square bracket (opening or closing) can't be loaded, e.g.:

Code: Select all

path/file[.mp3
However, if the path is absolute, it works:

Code: Select all

/full/path/file[.mp3
It also works if I URL-encode the square bracket as %5B and %5D (in the M3U, not the file on disk).

Before anyone asks: no, I'm not going to modify all affected playlists or rename the actual files, because they work for every other player I'm using - and have been working for VLC in the past, too.

I've been able to reproduce this on Windows, Linux and Android and even sifted through the source to see if I catch anything that might cause this, but no dice. Can anyone help me with this?


ThomasR
New Cone
New Cone
Posts: 5
Joined: 11 Jan 2021 20:43

Re: M3U track not loading if relative path contains square brackets

Postby ThomasR » 14 Jan 2021 11:24

Thanks for the links - I did a search before posting, but all three of those topics escaped me somehow. :oops:
Anyway, looks like this has been a known problem for at least an entire year. None of the developers use square brackets in their filenames, I guess :)

From my experience, it only takes the right person a couple of minutes to spot the bug in the code - finding the right person and making them look into the issue is the actual hard part.

[Edit] Nevermind, I just found this bug report (3 years old and still open). It's exactly this problem.
Looking at the discussion that unfolded there over the years, I can only say, I wholeheartedly agree with the last comment from "unidarrio" - I don't see why a non-issue like this should be offloaded on the user without reasonable explanation or any help in resolving the problem.

In a nutshell: if it works literally everywhere else, it should also work in VLC.

Sorry if that sounded frustrated, but that's because I AM. I'm just a guy trying to listen to music on his phone and VLC is now making this much more complicated than it should be.

Lotesdelere
Cone Master
Cone Master
Posts: 10074
Joined: 08 Sep 2006 04:39
Location: Europe

Re: M3U track not loading if relative path contains square brackets

Postby Lotesdelere » 15 Jan 2021 11:34

In a nutshell: if it works literally everywhere else, it should also work in VLC.
I know.

Sorry if that sounded frustrated, but that's because I AM.
So am I.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 36 guests