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))