Skip to content

Commit e4560e0

Browse files
committed
Revert "Ignore 403 Forbidden streams when getting manifest"
This reverts commit 52b2539.
1 parent 52b2539 commit e4560e0

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

YoutubeExplode/Videos/Streams/StreamClient.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,7 @@ CancellationToken cancellationToken
5858
contentLength = response.Content.Headers.ContentLength;
5959

6060
// 404 error indicates that the stream is not available
61-
if (
62-
response.StatusCode == HttpStatusCode.NotFound
63-
|| response.StatusCode == HttpStatusCode.Forbidden
64-
)
61+
if (response.StatusCode == HttpStatusCode.NotFound)
6562
return null;
6663

6764
response.EnsureSuccessStatusCode();
@@ -79,10 +76,7 @@ CancellationToken cancellationToken
7976
);
8077

8178
// 404 error indicates that the stream has mismatched content length or is not available
82-
if (
83-
response.StatusCode == HttpStatusCode.NotFound
84-
|| response.StatusCode == HttpStatusCode.Forbidden
85-
)
79+
if (response.StatusCode == HttpStatusCode.NotFound)
8680
return null;
8781

8882
response.EnsureSuccessStatusCode();

0 commit comments

Comments
 (0)