mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-18 17:14:26 +03:00
also check 404
This commit is contained in:
parent
74be520a54
commit
6df6ab53c9
@ -27,7 +27,7 @@ export function GenericVideoPlayer({
|
|||||||
const response = await fetch(url, { method: "HEAD" });
|
const response = await fetch(url, { method: "HEAD" });
|
||||||
// nginx vod module returns 502 for non existent media
|
// nginx vod module returns 502 for non existent media
|
||||||
// https://github.com/kaltura/nginx-vod-module/issues/468
|
// https://github.com/kaltura/nginx-vod-module/issues/468
|
||||||
setSourceExists(response.status !== 502);
|
setSourceExists(response.status !== 502 && response.status !== 404);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
setSourceExists(false);
|
setSourceExists(false);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user