1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-04 03:53:23 +08:00

Fix DASH segment template conversion regex

This commit is contained in:
Max Davidson 2016-04-08 18:29:50 +02:00
parent a1ff3cd5f9
commit fe9e0cc000

View File

@ -1534,7 +1534,7 @@ class InfoExtractor(object):
media_template = representation_ms_info['media_template']
media_template = media_template.replace('$RepresentationID$', representation_id)
media_template = re.sub(r'\$(Number|Bandwidth)\$', r'%(\1)d', media_template)
media_template = re.sub(r'\$(Number|Bandwidth)%(\d+)\$', r'%(\1)\2d', media_template)
media_template = re.sub(r'\$(Number|Bandwidth)%(\d+)d\$', r'%(\1)\2d', media_template)
media_template.replace('$$', '$')
representation_ms_info['segment_urls'] = [
media_template % {