M3U track not loading if relative path contains square brackets
Posted: 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.:
However, if the path is absolute, it works:
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?
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
Code: Select all
/full/path/file[.mp3
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?