robustness fix to _parse_extinf
function now handles titles with commas, and coerces unset durations to 0
Thanks for the pull-request, but I think we should not merge it as it is.
-
I think the solution for titles with commas is ok, but we should add a test case.
-
The spec does not mention how blank durations should be handled, but I think we should set it to
Noneinternally, so we can dump it as blank and not 0. Tests would be nice two.
Just follow the same way using ATTRIBUTELISTPATTERN should be ok. see _parse_stream_inf and _parse_key
@jbochi @feuvan and @gordon-morehouse is it still valid to apply or should we wait for test case?