mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2025-03-04 22:37:16 +00:00
Merge pull request #70 from zas/fix_issue69
Remove medium title if there is only one medium
This commit is contained in:
commit
ba8da60b1b
1 changed files with 6 additions and 0 deletions
|
@ -726,6 +726,12 @@ function parseDiscogsRelease(data) {
|
|||
}
|
||||
});
|
||||
|
||||
if (release.discs.length == 1 && release.discs[0].title) {
|
||||
// remove title if there is only one disc
|
||||
// https://github.com/murdos/musicbrainz-userscripts/issues/69
|
||||
release.discs[0].title = '';
|
||||
}
|
||||
|
||||
LOGGER.info("Parsed release: ", release);
|
||||
return release;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue