mirror of https://github.com/mpv-player/mpv
demux_playlist: unquote entries in pls playlists
I guess these parsers still have a way to go...
This commit is contained in:
parent
e0231926df
commit
a82f2e2792
|
@ -158,6 +158,9 @@ static int parse_pls(struct pl_parser *p)
|
|||
if (bstr_split_tok(line, "=", &key, &value) &&
|
||||
bstr_case_startswith(key, bstr0("File")))
|
||||
{
|
||||
value = bstr_strip(value);
|
||||
if (bstr_startswith0(value, "\"") && bstr_endswith0(value, "\""))
|
||||
value = bstr_splice(value, 1, -1);
|
||||
pl_add(p, value);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue