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
master
jomo 2015-06-14 21:50:03 +02:00
parent 755a9d3d1a
commit 9fd24e3a22
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,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 = s['file'].replace('.h264_base.mp4', '') 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,