A feature-rich command-line audio/video downloader
[extractor/youtube] Fix 5038f6d713303e0967d002216e7a88652401c22a
pukkandanf34804b2f920
diff --git a/yt_dlp/downloader/fragment.py b/yt_dlp/downloader/fragment.pyindex 039cb14927..377f138b76 100644--- a/yt_dlp/downloader/fragment.py+++ b/yt_dlp/downloader/fragment.py@@ -466,7 +466,8 @@ class FragmentFD(FileDownloader):for retry in RetryManager(self.params.get('fragment_retries'), error_callback):try:ctx['fragment_count'] = fragment.get('fragment_count')- if not self._download_fragment(ctx, fragment['url'], info_dict, headers):+ if not self._download_fragment(+ ctx, fragment['url'], info_dict, headers, info_dict.get('request_data')):returnexcept (urllib.error.HTTPError, http.client.IncompleteRead) as err:retry.error = errdiff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.pyindex 86bef173f5..98efe0e9da 100644--- a/yt_dlp/extractor/common.py+++ b/yt_dlp/extractor/common.py@@ -132,6 +132,7 @@ class InfoExtractor:is parsed from a string (in case offragmented media)for MSS - URL of the ISM manifest.+ * request_data Data to send in POST request to the URL* manifest_urlThe URL of the manifest file in case offragmented media:diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.pyindex 0227a1f83c..f5ffce7750 100644--- a/yt_dlp/extractor/youtube.py+++ b/yt_dlp/extractor/youtube.py@@ -3778,7 +3778,6 @@ class YoutubeIE(YoutubeBaseInfoExtractor):if no_audio or no_video:CHUNK_SIZE = 10 << 20dct.update({- 'request_data': b'x','protocol': 'http_dash_segments','fragments': [{'url': update_url_query(dct['url'], {