pull/2465/head
Mikael Finstad 1 year ago
parent 2505063702
commit 250506b087
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -246,7 +246,7 @@ export async function askForSegmentDuration({ totalDuration, inputPlaceholder, p
const segmentDuration = parseTimecode(v);
if (segmentDuration != null) {
const numSegments = Math.ceil(totalDuration / segmentDuration);
if (segmentDuration > 0 && segmentDuration < fileDuration && numSegments <= maxSegments) return null;
if (segmentDuration > 0 && segmentDuration < totalDuration && numSegments <= maxSegments) return null;
}
return i18n.t('Please input a valid duration. Example: {{example}}', { example: inputPlaceholder });
},

Loading…
Cancel
Save