Fixed genre tag for FLACS while using null Separator
authorRemixDev <deezloaderremix@gmail.com>
Fri, 5 Apr 2019 09:12:20 +0000 (11:12 +0200)
committerRemixDev <deezloaderremix@gmail.com>
Fri, 5 Apr 2019 09:12:20 +0000 (11:12 +0200)
app/app.js

index 1f68bb382223914b00850f645013958d0b4ad5c2..4e2cf9351e9ee28be7db98dc19372ac2089f321c 100644 (file)
@@ -1410,7 +1410,10 @@ io.sockets.on('connection', function (s) {
                                if (!(track.selectedFormat == 9 && separator==String.fromCharCode(parseInt("\u0000",16)))) track.artistsString = track.artistsString.join(separator)
                        }
                        if (track.genre){
-                               if (!(track.selectedFormat == 9 && separator==String.fromCharCode(parseInt("\u0000",16)))) track.genreString = track.genre.join(separator)
+                               if (!(track.selectedFormat == 9 && separator==String.fromCharCode(parseInt("\u0000",16))))
+                                       track.genreString = track.genre.join(separator)
+                               else
+                                       track.genreString = track.genre
                        }
 
                        if (track.date){