projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00ac23e
)
[liveleak] Clarify rationale for restoring raw video
author
Sergey M․
<dstftw@gmail.com>
Sun, 14 Jun 2015 20:54:05 +0000
(
02:54
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 14 Jun 2015 20:54:05 +0000
(
02:54
+0600)
youtube_dl/extractor/liveleak.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/liveleak.py
b/youtube_dl/extractor/liveleak.py
index e82f21ea7136b1e4a0ef797c20d120a65b49a0a7..0a4e473d61cffdb9a2a9831b1f2e3b2ae10ddbce 100644
(file)
--- a/
youtube_dl/extractor/liveleak.py
+++ b/
youtube_dl/extractor/liveleak.py
@@
-95,6
+95,9
@@
class LiveLeakIE(InfoExtractor):
'url': s['file'],
} for i, s in enumerate(sources)]
for i, s in enumerate(sources):
+ # Removing '.h264_*.mp4' gives the raw video, which is essentially
+ # the same video without the LiveLeak logo at the top (see
+ # https://github.com/rg3/youtube-dl/pull/4768)
orig_url = re.sub(r'\.h264_.+?\.mp4', '', s['file'])
if s['file'] != orig_url:
formats.append({