Added date variable to tracks
authorRemixDev <deezloaderremix@gmail.com>
Tue, 4 Jun 2019 11:39:56 +0000 (13:39 +0200)
committerRemixDev <deezloaderremix@gmail.com>
Tue, 4 Jun 2019 11:39:56 +0000 (13:39 +0200)
app/app.js

index 3ef3655a66113d97109f99a1afaaed50f5829830..610a304cb396ea0bb2f65a6db1caaf20f5e21bac 100644 (file)
@@ -2153,6 +2153,7 @@ function settingsRegex(track, filename, playlist) {
                filename = filename.replace(/%album%/g, fixName(track.album.title));
                filename = filename.replace(/%artist%/g, fixName(((configFile.userDefined.saveFullArtists && configFile.userDefined.multitagSeparator != null) ? track.artistsString : track.artist.name)));
                filename = filename.replace(/%year%/g, fixName(track.date.year));
+               filename = filename.replace(/%date%/g, fixName(track.album.date));
                filename = filename.replace(/%label%/g, fixName(track.album.label));
                if(typeof track.trackNumber != 'undefined'){
                        if(configFile.userDefined.padtrck){