mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 02:25:11 +00:00
[liveleak] Clarify rationale for restoring raw video
This commit is contained in:
parent
00ac23e6e0
commit
afa1ded425
1 changed files with 3 additions and 0 deletions
|
@ -95,6 +95,9 @@ def _real_extract(self, url):
|
|||
'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({
|
||||
|
|
Loading…
Reference in a new issue