From f6898775441073c1ea0b8d0e9163e3aed3383c2c Mon Sep 17 00:00:00 2001 From: madmouser1 Date: Tue, 10 May 2016 17:36:45 +0100 Subject: [PATCH] fixed https://github.com/murdos/musicbrainz-userscripts/issues/112 Release format --- takealot_importer.user.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/takealot_importer.user.js b/takealot_importer.user.js index 2c0cccc..8709936 100644 --- a/takealot_importer.user.js +++ b/takealot_importer.user.js @@ -733,7 +733,7 @@ function ParseTakealotPage() { // LOGGER.debug("Tracklist for the selected disc: ", disclistarray[l]); var disc = { 'position': l + 1, - 'format': releaseformat, + 'format': DiscFormats[releaseformat], 'tracks': disclistarray[l] }; release.discs.push(disc); @@ -773,6 +773,11 @@ function ParseTakealotPage() { // Takealot -> MusicBrainz mapping // //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +var DiscFormats = new Array(); +DiscFormats["CD"] = "CD"; +DiscFormats["DVD"] = "DVD"; +DiscFormats["Audio CD"] = "CD"; + var Languages = new Array(); Languages["Afrikaans"] = "afr";