File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
YoutubeExplode/Videos/Streams Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments