Fix keeping suffix as-is in advanced renaming example

This commit is contained in:
Martchus 2022-05-24 18:13:46 +02:00
parent ee7d92f0a7
commit 7105d6310d
1 changed files with 4 additions and 1 deletions

View File

@ -193,7 +193,10 @@ if (includeTrackInfo && tracks.length > 0) {
// append an appropriate suffix
var suffix = ""
if (notEmpty(fileInfo.suitableSuffix)) {
if (notEmpty(keepSuffix)) {
// keep suffix as-is
suffix = keepSuffix
} else if (notEmpty(fileInfo.suitableSuffix)) {
// get a suitable suffix from the file info object if available
suffix = fileInfo.suitableSuffix
} else if (notEmpty(fileInfo.currentSuffix)) {