kopia lustrzana https://github.com/mifi/lossless-cut
don't include seg1 when only one seg #583
rodzic
b9bde3b2bb
commit
32d30cb6d5
|
@ -325,7 +325,8 @@ export async function cutMultiple({
|
||||||
let segNamePart = '';
|
let segNamePart = '';
|
||||||
if (!invertCutSegments) {
|
if (!invertCutSegments) {
|
||||||
if (name) segNamePart = `-${filenamify(name)}`;
|
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 cutSpecification = `${cutFromStr}-${cutToStr}${segNamePart}`.substr(0, 200);
|
||||||
const ext = getOutFileExtension({ isCustomFormatSelected, outFormat, filePath });
|
const ext = getOutFileExtension({ isCustomFormatSelected, outFormat, filePath });
|
||||||
|
|
Ładowanie…
Reference in New Issue