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:
@@ -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",
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user