From 2fd226f6a76715e429709d7172183d48e07c7ab3 Mon Sep 17 00:00:00 2001 From: coletdjnz Date: Thu, 22 Jul 2021 20:11:04 +1200 Subject: [PATCH] [youtube] Fix age-gated videos for API clients when cookies are supplied (#545) Fixes #543 Authored by: colethedj --- yt_dlp/extractor/youtube.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index 7a1d39ac85..970f9a0726 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -2343,7 +2343,8 @@ def _generate_player_context(sts=None): 'playbackContext': { 'contentPlaybackContext': context }, - 'contentCheckOk': True + 'contentCheckOk': True, + 'racyCheckOk': True } @staticmethod