don't include seg1 when only one seg #583

pull/581/head^2
Mikael Finstad 2021-01-18 22:52:58 +01:00
rodzic b9bde3b2bb
commit 32d30cb6d5
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -325,7 +325,8 @@ export async function cutMultiple({
let segNamePart = '';
if (!invertCutSegments) {
if (name) segNamePart = `-${filenamify(name)}`;
else segNamePart = `-seg${order + 1}`;
// https://github.com/mifi/lossless-cut/issues/583
else if (segments.length > 1) segNamePart = `-seg${order + 1}`;
}
const cutSpecification = `${cutFromStr}-${cutToStr}${segNamePart}`.substr(0, 200);
const ext = getOutFileExtension({ isCustomFormatSelected, outFormat, filePath });