From: Sergey M․ Date: Sun, 14 Jun 2015 20:51:21 +0000 (+0600) Subject: [liveleak] Improve regex for restoring original video URL X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=00ac23e6e06bf6de59d5d5b3f42ff64ce039fee2;p=youtube-dl [liveleak] Improve regex for restoring original video URL --- diff --git a/youtube_dl/extractor/liveleak.py b/youtube_dl/extractor/liveleak.py index c658cc92b..e82f21ea7 100644 --- a/youtube_dl/extractor/liveleak.py +++ b/youtube_dl/extractor/liveleak.py @@ -95,7 +95,7 @@ class LiveLeakIE(InfoExtractor): 'url': s['file'], } 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: formats.append({ 'format_id': 'original-%s' % i,