Fixed %position% being undefined on single tracks

This commit is contained in:
RemixDev 2022-11-07 23:40:04 +01:00
parent 2b018a24e3
commit ae196fc39e
No known key found for this signature in database
GPG key ID: B33962B465BDB51C

View file

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