This commit is contained in:
HaveAGitGat 2023-02-12 23:07:00 +00:00
parent fbed3a0a84
commit 8d45fbaa64

View file

@ -174,7 +174,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
// If not filled then get duration of stream 0 and do the same.
if (parseFloat(file.ffProbeData?.format?.duration) > 0) {
duration = parseFloat(file.ffProbeData?.format?.duration) * 0.0166667;
} if (typeof file.meta.Duration !== 'undefined') {
} else if (typeof file.meta.Duration !== 'undefined') {
duration = file.meta.Duration * 0.0166667;
} else {
duration = file.ffProbeData.streams[0].duration * 0.0166667;