[liveleak] Improve regex for restoring original video URL
authorSergey M․ <dstftw@gmail.com>
Sun, 14 Jun 2015 20:51:21 +0000 (02:51 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 14 Jun 2015 20:51:21 +0000 (02:51 +0600)
youtube_dl/extractor/liveleak.py

index c658cc92bdd505badc8ba579afd2743fad941746..e82f21ea7136b1e4a0ef797c20d120a65b49a0a7 100644 (file)
@@ -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,