takealot_importer: Added parse release title and label from Product Information tab

This commit is contained in:
madmouser1 2016-04-11 11:50:05 +01:00
parent 3e1a62d3cc
commit dc8679712a

View file

@ -130,6 +130,8 @@ function ParseTakealotPage() {
var releasedaterel = ""; var releasedaterel = "";
var releaselanguage = ""; var releaselanguage = "";
var releasetitle = ""; var releasetitle = "";
var releaselabel = [];
var releaseformat = "";
var release_maybe_buggy = false; var release_maybe_buggy = false;
// Select all DL data in the "Product Info" div id = second div class = details // 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(); releaseartist = artistitemlabel.nextSibling.textContent.trim();
LOGGER.debug('The value is :' + artistitem + ' > ' + releaseartist); LOGGER.debug('The value is :' + artistitem + ' > ' + releaseartist);
break; 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 case "date released": // use these cases to select the spesific text values
releasedaterel = artistitemlabel.nextSibling.textContent.trim(); releasedaterel = artistitemlabel.nextSibling.textContent.trim();
LOGGER.debug('The value is :' + artistitem + ' > ' + releasedaterel); LOGGER.debug('The value is :' + artistitem + ' > ' + releasedaterel);
break; 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 case "language": // use these cases to select the spesific text values
releaselanguage = artistitemlabel.nextSibling.textContent.trim(); releaselanguage = artistitemlabel.nextSibling.textContent.trim();
LOGGER.debug('The value is :' + artistitem + ' > ' + releaselanguage); LOGGER.debug('The value is :' + artistitem + ' > ' + releaselanguage);