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";