Add error warning if no streams info (#298)

make-only-subtitle-default
HaveAGitGat 4 years ago committed by GitHub
parent ba2dbf4470
commit 99ad3b334d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -95,6 +95,11 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
infoLog: '',
};
if (!Array.isArray(file.ffProbeData.streams)) {
throw new Error('FFprobe was unable to extract any streams info on this file.'
+ 'This may be due to a corrupt file or permissions issue when scanning the file.');
}
let { streams } = JSON.parse(JSON.stringify(file.ffProbeData));
streams.forEach((stream, index) => {

Loading…
Cancel
Save