From c75ef6394a38edd5bf334c15eeaca41112b6eee2 Mon Sep 17 00:00:00 2001 From: Rafael Date: Mon, 10 Jul 2023 11:29:18 +0500 Subject: [PATCH] support for parsing extended #EXTM3U header --- m3u8/parser.py | 1 + 1 file changed, 1 insertion(+) diff --git a/m3u8/parser.py b/m3u8/parser.py index c6307b57..589b5979 100644 --- a/m3u8/parser.py +++ b/m3u8/parser.py @@ -255,6 +255,7 @@ def _parse_extinf(line, data, state, lineno, strict): chunks = line.replace(protocol.extinf + ":", "").split(",", 1) if len(chunks) == 2: duration, title = chunks + duration = re.sub(r'^([\-\d]+).*$', r'\1', duration) elif len(chunks) == 1: if strict: raise ParseError(lineno, line)