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 committed by Diogo Franco (Kovensky)
parent e0231926df
commit a82f2e2792
1 changed files with 3 additions and 0 deletions

View File

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