1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[liveleak] Improve regex for restoring original video URL

This commit is contained in:
Sergey M․ 2015-06-15 02:51:21 +06:00
parent 7d0c934a3e
commit 00ac23e6e0

View file

@ -95,7 +95,7 @@ class LiveLeakIE(InfoExtractor):
'url': s['file'], 'url': s['file'],
} for i, s in enumerate(sources)] } for i, s in enumerate(sources)]
for i, s in enumerate(sources): for i, s in enumerate(sources):
orig_url = re.sub(r'.h264_.+\.mp4', '', s['file']) orig_url = re.sub(r'\.h264_.+?\.mp4', '', s['file'])
if s['file'] != orig_url: if s['file'] != orig_url:
formats.append({ formats.append({
'format_id': 'original-%s' % i, 'format_id': 'original-%s' % i,