[downloader/external] Fix cookie support

This commit is contained in:
bashonly
2023-07-04 16:40:56 -05:00
committed by dirkf
parent 8334ec961b
commit 21438a4194
3 changed files with 256 additions and 30 deletions

View File

@@ -13,9 +13,7 @@ from ..utils import (
error_to_compat_str,
format_bytes,
shell_quote,
T,
timeconvert,
traverse_obj,
)
@@ -379,9 +377,6 @@ class FileDownloader(object):
else '%.2f' % sleep_interval))
time.sleep(sleep_interval)
info_dict['http_headers'] = dict(traverse_obj(info_dict, (
'http_headers', T(dict.items), lambda _, pair: pair[0].lower() != 'cookie'))) or None
return self.real_download(filename, info_dict)
def real_download(self, filename, info_dict):