mirror of
https://gitlab.com/RemixDev/deemix-js.git
synced 2024-12-28 02:16:08 +00:00
Fixed %position% being undefined on single tracks
This commit is contained in:
parent
2b018a24e3
commit
ae196fc39e
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue