From ae196fc39e4a4a1807b787fc5f07bc563fd9a661 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Mon, 7 Nov 2022 23:40:04 +0100 Subject: [PATCH] Fixed %position% being undefined on single tracks --- deemix/utils/pathtemplates.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deemix/utils/pathtemplates.js b/deemix/utils/pathtemplates.js index e2847ef..27742d9 100644 --- a/deemix/utils/pathtemplates.js +++ b/deemix/utils/pathtemplates.js @@ -165,7 +165,7 @@ function generateTrackName(filename, track, settings){ filename = filename.replaceAll("%position%", pad(track.position, track.playlist.trackTotal, settings)) } else { filename = filename.replaceAll("%playlist_id%", '') - filename = filename.replaceAll("%position%", pad(track.position, track.album.trackTotal, settings)) + filename = filename.replaceAll("%position%", pad(track.trackNumber, track.album.trackTotal, settings)) } filename = filename.replaceAll('\\', '/') return antiDot(fixLongName(filename))