diff --git a/YoutubeExplode.Tests/StreamSpecs.cs b/YoutubeExplode.Tests/StreamSpecs.cs index a511c1f4..6fab3e2f 100644 --- a/YoutubeExplode.Tests/StreamSpecs.cs +++ b/YoutubeExplode.Tests/StreamSpecs.cs @@ -159,6 +159,7 @@ public async Task I_can_get_a_specific_stream_of_a_video(string videoId) [InlineData(VideoIds.AgeRestrictedEmbedRestricted)] [InlineData(VideoIds.LiveStreamRecording)] [InlineData(VideoIds.WithOmnidirectionalStreams)] + [InlineData(VideoIds.WithSuicideWarning)] public async Task I_can_download_a_specific_stream_of_a_video(string videoId) { // Arrange diff --git a/YoutubeExplode.Tests/TestData/VideoIds.cs b/YoutubeExplode.Tests/TestData/VideoIds.cs index e50fe678..011d6af8 100644 --- a/YoutubeExplode.Tests/TestData/VideoIds.cs +++ b/YoutubeExplode.Tests/TestData/VideoIds.cs @@ -21,4 +21,5 @@ internal static class VideoIds public const string WithHighDynamicRangeStreams = "vX2vsvdq8nw"; public const string WithClosedCaptions = "YltHGKX80Y8"; public const string WithBrokenClosedCaptions = "1VKIIw05JnE"; + public const string WithSuicideWarning = "4QXCPuwBz2E"; } diff --git a/YoutubeExplode/Videos/VideoController.cs b/YoutubeExplode/Videos/VideoController.cs index dfc79c69..2f2c3de2 100644 --- a/YoutubeExplode/Videos/VideoController.cs +++ b/YoutubeExplode/Videos/VideoController.cs @@ -66,6 +66,7 @@ public async ValueTask GetPlayerResponseAsync( $$""" { "videoId": {{Json.Serialize(videoId)}}, + "contentCheckOk": true, "context": { "client": { "clientName": "IOS",