diff options
author | jomo <github@jomo.tv> | 2015-06-14 21:50:03 +0200 |
---|---|---|
committer | jomo <github@jomo.tv> | 2015-06-14 21:50:03 +0200 |
commit | 9fd24e3a227a059eed07b679dac858e5bd747123 (patch) | |
tree | 5c98970b2b935c8aa9434dfe188110524ee275e8 /youtube_dl/extractor/liveleak.py | |
parent | 755a9d3d1a8f99b061c8d29525d629b8ad6061a4 (diff) |
LiveLeak: support more original videos
some (old?) videos use ...mp4.h264_270p.mp4... instead of ...mp4.h264_base.mp4...
This is an addition to #4768
Diffstat (limited to 'youtube_dl/extractor/liveleak.py')
-rw-r--r-- | youtube_dl/extractor/liveleak.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/liveleak.py b/youtube_dl/extractor/liveleak.py index 35822067f..431f2e85d 100644 --- a/youtube_dl/extractor/liveleak.py +++ b/youtube_dl/extractor/liveleak.py @@ -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, |