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
a5832ba019
commit
f2d6c8cb1c
|
@ -179,6 +179,9 @@ static int parse_pls(struct pl_parser *p)
|
||||||
if (bstr_split_tok(line, "=", &key, &value) &&
|
if (bstr_split_tok(line, "=", &key, &value) &&
|
||||||
bstr_case_startswith(key, bstr0("File")))
|
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);
|
pl_add(p, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue