mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-12-14 04:12:28 +00:00
takealot_importer: Added parse release title and label from Product Information tab
This commit is contained in:
parent
3e1a62d3cc
commit
dc8679712a
1 changed files with 12 additions and 0 deletions
|
@ -130,6 +130,8 @@ function ParseTakealotPage() {
|
|||
var releasedaterel = "";
|
||||
var releaselanguage = "";
|
||||
var releasetitle = "";
|
||||
var releaselabel = [];
|
||||
var releaseformat = "";
|
||||
var release_maybe_buggy = false;
|
||||
|
||||
// Select all DL data in the "Product Info" div id = second div class = details
|
||||
|
@ -153,10 +155,20 @@ function ParseTakealotPage() {
|
|||
releaseartist = artistitemlabel.nextSibling.textContent.trim();
|
||||
LOGGER.debug('The value is :' + artistitem + ' > ' + releaseartist);
|
||||
break;
|
||||
case "label": // use these cases to select the spesific text values
|
||||
releaselabel.push({
|
||||
name: artistitemlabel.nextSibling.textContent.trim()
|
||||
});
|
||||
LOGGER.debug('The value is :' + artistitem + ' > ' + releaselabel);
|
||||
break;
|
||||
case "date released": // use these cases to select the spesific text values
|
||||
releasedaterel = artistitemlabel.nextSibling.textContent.trim();
|
||||
LOGGER.debug('The value is :' + artistitem + ' > ' + releasedaterel);
|
||||
break;
|
||||
case "format": // use these cases to select the spesific text values
|
||||
releaseformat = artistitemlabel.nextSibling.textContent.trim();
|
||||
LOGGER.debug('The value is :' + artistitem + ' > ' + releaseformat);
|
||||
break;
|
||||
case "language": // use these cases to select the spesific text values
|
||||
releaselanguage = artistitemlabel.nextSibling.textContent.trim();
|
||||
LOGGER.debug('The value is :' + artistitem + ' > ' + releaselanguage);
|
||||
|
|
Loading…
Reference in a new issue