Merge pull request #113 from madmouser1/Takealot_format

Takealot: Fixed issue 112 (Format)
This commit is contained in:
Laurent Monin 2016-05-11 00:59:59 +02:00
commit d516492d04

View file

@ -733,7 +733,7 @@ function ParseTakealotPage() {
// LOGGER.debug("Tracklist for the selected disc: ", disclistarray[l]); // LOGGER.debug("Tracklist for the selected disc: ", disclistarray[l]);
var disc = { var disc = {
'position': l + 1, 'position': l + 1,
'format': releaseformat, 'format': DiscFormats[releaseformat],
'tracks': disclistarray[l] 'tracks': disclistarray[l]
}; };
release.discs.push(disc); release.discs.push(disc);
@ -773,6 +773,11 @@ function ParseTakealotPage() {
// Takealot -> MusicBrainz mapping // // Takealot -> MusicBrainz mapping //
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var DiscFormats = new Array();
DiscFormats["CD"] = "CD";
DiscFormats["DVD"] = "DVD";
DiscFormats["Audio CD"] = "CD";
var Languages = new Array(); var Languages = new Array();
Languages["Afrikaans"] = "afr"; Languages["Afrikaans"] = "afr";