parent
f178bb67bb
commit
31d9cc44b7
|
@ -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;
|
||||
|
|
Reference in New Issue