]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
LiveLeak: support more original videos
authorjomo <github@jomo.tv>
Sun, 14 Jun 2015 19:50:03 +0000 (21:50 +0200)
committerjomo <github@jomo.tv>
Sun, 14 Jun 2015 19:50:03 +0000 (21:50 +0200)
some (old?) videos use ...mp4.h264_270p.mp4... instead of ...mp4.h264_base.mp4...
This is an addition to #4768

youtube_dl/extractor/liveleak.py

index 35822067f908f0567e8dcb8c9c8265df4d3421c2..431f2e85dc254b9f929ab050545dd9824b09f087 100644 (file)
@@ -85,7 +85,7 @@ class LiveLeakIE(InfoExtractor):
             'url': s['file'],
         } for i, s in enumerate(sources)]
         for i, s in enumerate(sources):
-            orig_url = s['file'].replace('.h264_base.mp4', '')
+            orig_url = re.sub(r'.h264_.+\.mp4', '', s['file'])
             if s['file'] != orig_url:
                 formats.append({
                     'format_id': 'original-%s' % i,