A feature-rich command-line audio/video downloader
[ie/facebook] Set format HTTP chunk size (#9058)
kclauhk5b68c478fb0b
diff --git a/yt_dlp/extractor/facebook.py b/yt_dlp/extractor/facebook.pyindex 26cfda5384..84856abe1b 100644--- a/yt_dlp/extractor/facebook.py+++ b/yt_dlp/extractor/facebook.py@@ -564,7 +564,11 @@ class FacebookIE(InfoExtractor):# Downloads with browser's User-Agent are rate limited. Working around# with non-browser User-Agent.for f in info['formats']:+ # Downloads with browser's User-Agent are rate limited. Working around+ # with non-browser User-Agent.f.setdefault('http_headers', {})['User-Agent'] = 'facebookexternalhit/1.1'+ # Formats larger than ~500MB will return error 403 unless chunk size is regulated+ f.setdefault('downloader_options', {})['http_chunk_size'] = 250 << 20def extract_relay_data(_filter):return self._parse_json(self._search_regex(