Readded frame rate check

make-only-subtitle-default
Aune 4 years ago committed by GitHub
parent 36e21d1b6a
commit 8d61fbda92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -28,7 +28,7 @@ function details() {
infoLog: '',
};
if (file.ffProbeData.streams.filter((x) => x.codec_type === 'video').length) {
if (file.ffProbeData.streams.filter((x) => x.codec_type === 'video' && x.avg_frame_rate !== '0/0').length) {
response.infoLog += '☒File contains video!\n';
return response;
}
@ -46,4 +46,4 @@ function details() {
}
module.exports.details = details;
module.exports.plugin = plugin;
module.exports.plugin = plugin;

Loading…
Cancel
Save