Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2022-06-19 18:10:36 +02:00
parent f178bb67bb
commit 31d9cc44b7
Signed by untrusted user: sam
GPG key ID: 4D8B07C18F31ACBD

View file

@ -158,7 +158,7 @@ async function ffprobe(videoFile: string): Promise<Record<string, unknown>> {
}
// Make the duration actually a number
json.duration = Number(json.duration);
if (code != 0) {
if (code !== 0) {
throw new Error();
}
return json;