Fixed Date in Flacs
authorRemixDev <deezloaderremix@gmail.com>
Thu, 21 Feb 2019 15:05:55 +0000 (16:05 +0100)
committerRemixDev <deezloaderremix@gmail.com>
Thu, 21 Feb 2019 15:05:55 +0000 (16:05 +0100)
app/app.js

index 31b6112a5543e12ad728733c7f648265823fef56..23021f136e6e19475ef9d43cbbe38c0c85da7b9e 100644 (file)
@@ -1586,10 +1586,10 @@ io.sockets.on('connection', function (s) {
                                if (track.copyright && settings.tags.copyright)
                                        flacComments.push('COPYRIGHT=' + track.copyright);
                                if (0 < parseInt(track.date.year)){
+                                       if (settings.tags.date)
+                                               flacComments.push('DATE=' + track.dateString);
                                        if (settings.tags.year)
                                                flacComments.push('YEAR=' + track.date.year);
-                                       if (settings.tags.date)
-                                       flacComments.push('DATE=' + track.dateString);
                                }
                                if (0 < parseInt(track.bpm) && settings.tags.bpm)
                                        flacComments.push('BPM=' + track.bpm);