Skip to content

Commit

Permalink
Suicide warning fix (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
xBaank authored Sep 29, 2024
1 parent 40cf581 commit 25478ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions YoutubeExplode.Tests/StreamSpecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions YoutubeExplode.Tests/TestData/VideoIds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
1 change: 1 addition & 0 deletions YoutubeExplode/Videos/VideoController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public async ValueTask<PlayerResponse> GetPlayerResponseAsync(
$$"""
{
"videoId": {{Json.Serialize(videoId)}},
"contentCheckOk": true,
"context": {
"client": {
"clientName": "IOS",
Expand Down

0 comments on commit 25478ed

Please sign in to comment.