From d9c68cc459222ea20a3d2b41cf79d613a6ecf747 Mon Sep 17 00:00:00 2001 From: nicolaasjan Date: Sat, 10 Oct 2026 07:01:57 +0200 Subject: [PATCH] Add WITH_COOKIES parameter to INNERTUBE_CONTEXT; fix indentation Added 'WITH_COOKIES' parameter to the context; fix indentation --- youtube_dl/extractor/youtube.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index fce7ccf9e..610e3d4e0 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -102,10 +102,11 @@ class YoutubeBaseInfoExtractor(InfoExtractor): 'osVersion': '26.5.23O471', }, }, - 'INNERTUBE_CONTEXT_CLIENT_NAME': 101, - 'REQUIRE_JS_PLAYER': False, + 'INNERTUBE_CONTEXT_CLIENT_NAME': 101, + 'REQUIRE_JS_PLAYER': False, + 'WITH_COOKIES': False, }), - # thx yt-dlp/yt-dlp#15726 + # Doesn't require a PoToken for some reason: thx yt-dlp/yt-dlp#14693 ('android_vr', { 'INNERTUBE_CONTEXT': { 'client': {