]> jfr.im git - yt-dlp.git/commitdiff
[youtube] Fix age-gated videos for API clients when cookies are supplied (#545)
authorcoletdjnz <redacted>
Thu, 22 Jul 2021 08:11:04 +0000 (20:11 +1200)
committerGitHub <redacted>
Thu, 22 Jul 2021 08:11:04 +0000 (08:11 +0000)
Fixes #543
Authored by: colethedj

yt_dlp/extractor/youtube.py

index 7a1d39ac8524feb2c4ccec18c5a5fb0ccc378e51..970f9a072685c1235128853f13daf2b462555260 100644 (file)
@@ -2343,7 +2343,8 @@ def _generate_player_context(sts=None):
             'playbackContext': {
                 'contentPlaybackContext': context
             },
-            'contentCheckOk': True
+            'contentCheckOk': True,
+            'racyCheckOk': True
         }
 
     @staticmethod