Add catalognumber in addition of the release label.

Updated to music-metadata in order to recognize MIME-type: audio/x-flac
This commit is contained in:
Borewit
2017-09-17 22:10:00 +02:00
parent 8868128d6e
commit 83350b3b57
2 changed files with 9 additions and 3 deletions

View File

@@ -32,7 +32,7 @@
"material-ui": "^0.17.0", "material-ui": "^0.17.0",
"mime": "^2.0.1", "mime": "^2.0.1",
"mkdirp": "^0.5.1", "mkdirp": "^0.5.1",
"music-metadata": "^0.8.4", "music-metadata": "^0.8.5",
"network-address": "^1.1.0", "network-address": "^1.1.0",
"parse-torrent": "^5.7.3", "parse-torrent": "^5.7.3",
"prettier-bytes": "^1.0.1", "prettier-bytes": "^1.0.1",

View File

@@ -218,8 +218,14 @@ function renderAudioMetadata (state) {
let album = common.album let album = common.album
if (album && common.year && !album.includes(common.year)) { if (album && common.year && !album.includes(common.year)) {
album += ' (' + common.year + ')' album += ' (' + common.year + ')'
if (common.label) { if (common.label || common.catalognumber) {
album += ', ' + common.label album += ', '
let releaseInfo = []
if(common.label)
releaseInfo.push(common.label)
if(common.catalognumber)
releaseInfo.push(common.catalognumber)
album += releaseInfo.join(' / ')
} }
} }
let track let track