diff options
author | Sergey M․ <[email protected]> | 2015-06-15 02:54:05 +0600 |
---|---|---|
committer | Sergey M․ <[email protected]> | 2015-06-15 02:54:05 +0600 |
commit | afa1ded425ffe12a5b90bcd4d316c43941a5dc1a (patch) | |
tree | e0b661b0294f1abb4c158dc6b8b63178770f128a /youtube_dl/extractor/liveleak.py | |
parent | 00ac23e6e06bf6de59d5d5b3f42ff64ce039fee2 (diff) | |
download | youtube-dl-afa1ded425ffe12a5b90bcd4d316c43941a5dc1a.tar.gz youtube-dl-afa1ded425ffe12a5b90bcd4d316c43941a5dc1a.zip |
[liveleak] Clarify rationale for restoring raw video
Diffstat (limited to 'youtube_dl/extractor/liveleak.py')
-rw-r--r-- | youtube_dl/extractor/liveleak.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/liveleak.py b/youtube_dl/extractor/liveleak.py index e82f21ea7..0a4e473d6 100644 --- 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({ |