diff options
author | coletdjnz <coletdjnz@protonmail.com> | 2023-05-21 10:55:09 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-20 22:55:09 +0000 |
commit | 955c89584b66fcd0fcfab3e611f1edeb1ca63886 (patch) | |
tree | 34e055368b414b5cc908e84e97a7823f27f1d7c3 /yt_dlp/downloader/external.py | |
parent | 69bec6730ec9d724bcedeab199d9d684d61423ba (diff) | |
download | hypervideo-pre-955c89584b66fcd0fcfab3e611f1edeb1ca63886.tar.lz hypervideo-pre-955c89584b66fcd0fcfab3e611f1edeb1ca63886.tar.xz hypervideo-pre-955c89584b66fcd0fcfab3e611f1edeb1ca63886.zip |
[core] Deprecate internal `Youtubedl-no-compression` header (#6876)
Authored by: coletdjnz
Diffstat (limited to 'yt_dlp/downloader/external.py')
-rw-r--r-- | yt_dlp/downloader/external.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/yt_dlp/downloader/external.py b/yt_dlp/downloader/external.py index ee130c827..007689a8c 100644 --- a/yt_dlp/downloader/external.py +++ b/yt_dlp/downloader/external.py @@ -23,7 +23,6 @@ from ..utils import ( encodeArgument, encodeFilename, find_available_port, - handle_youtubedl_headers, remove_end, sanitized_Request, traverse_obj, @@ -529,10 +528,9 @@ class FFmpegFD(ExternalFD): selected_formats = info_dict.get('requested_formats') or [info_dict] for i, fmt in enumerate(selected_formats): if fmt.get('http_headers') and re.match(r'^https?://', fmt['url']): - headers_dict = handle_youtubedl_headers(fmt['http_headers']) # Trailing \r\n after each HTTP header is important to prevent warning from ffmpeg/avconv: # [http @ 00000000003d2fa0] No trailing CRLF found in HTTP header. - args.extend(['-headers', ''.join(f'{key}: {val}\r\n' for key, val in headers_dict.items())]) + args.extend(['-headers', ''.join(f'{key}: {val}\r\n' for key, val in fmt['http_headers'].items())]) if start_time: args += ['-ss', str(start_time)] |