From 5dbc77df267b4b3b91af0559d2e72f616551f445 Mon Sep 17 00:00:00 2001 From: coletdjnz Date: Wed, 16 Mar 2022 09:28:22 +1300 Subject: [PATCH] [youtube:api] Prefer minified JSON response Authored-by: coletdjnz --- yt_dlp/extractor/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index 4fe9cec5b..199225985 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -458,7 +458,7 @@ def _call_api(self, ep, query, video_id, fatal=True, headers=None, 'https://%s/youtubei/v1/%s' % (api_hostname or self._get_innertube_host(default_client), ep), video_id=video_id, fatal=fatal, note=note, errnote=errnote, data=json.dumps(data).encode('utf8'), headers=real_headers, - query={'key': api_key or self._extract_api_key()}) + query={'key': api_key or self._extract_api_key(), 'prettyPrint': 'false'}) def extract_yt_initial_data(self, item_id, webpage, fatal=True): data = self._search_regex(