woops we also need that check here

This commit is contained in:
Jorrin
2024-04-01 00:18:42 +02:00
parent 77540229a0
commit 090c892bda

View File

@@ -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') {