From 090c892bda02e6a4bb8cfff547cd73dadd8784e0 Mon Sep 17 00:00:00 2001 From: Jorrin Date: Mon, 1 Apr 2024 00:18:42 +0200 Subject: [PATCH] woops we also need that check here --- src/utils/valid.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/valid.ts b/src/utils/valid.ts index 86f17e8..fb9ef0f 100644 --- a/src/utils/valid.ts +++ b/src/utils/valid.ts @@ -30,7 +30,7 @@ export async function validatePlayableStream( ...stream.headers, }, }); - if (result.statusCode !== 200) return null; + if (result.statusCode < 200 || result.statusCode >= 400) return null; return stream; } if (stream.type === 'file') {