projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
755a9d3
)
LiveLeak: support more original videos
author
jomo
<github@jomo.tv>
Sun, 14 Jun 2015 19:50:03 +0000
(21:50 +0200)
committer
jomo
<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
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/liveleak.py
b/youtube_dl/extractor/liveleak.py
index 35822067f908f0567e8dcb8c9c8265df4d3421c2..431f2e85dc254b9f929ab050545dd9824b09f087 100644
(file)
--- 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,