We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5139fff commit 02353e1Copy full SHA for 02353e1
1 file changed
resources/lib/twitch/parser.py
@@ -23,5 +23,8 @@ def m3u8_to_dict(string):
23
matches = re.finditer(_m3u_pattern, string)
24
for m in matches:
25
d[m.group('group_name')] = m.group('url')
26
+ if m.group('group_id') == 'chunked':
27
+ d.update({'Source': m.group('url')}) # ensure Source stream identified for consistency
28
+
29
log.debug('m3u8_to_dict result:\n{}'.format(d))
30
return d
0 commit comments