demux_playlist: unquote entries in pls playlists

I guess these parsers still have a way to go...
This commit is contained in:
wm4 2014-12-30 13:24:43 +01:00
parent a5832ba019
commit f2d6c8cb1c
1 changed files with 3 additions and 0 deletions

View File

@ -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);
} }
} }