mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 15:38:19 -07:00
typo fix
This commit is contained in:
parent
fbed3a0a84
commit
8d45fbaa64
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue