Get title from ProductDetail

This commit is contained in:
augustjanse 2017-06-13 12:25:02 +02:00
parent 9e075aec21
commit 95eb960737

View file

@ -36,9 +36,6 @@ function retrieveReleaseInfo(release_url) {
}); });
return selectors.join(','); return selectors.join(',');
} }
var release_strings = [
'Release', 'Lanzamiento', 'Sortie', 'Album', 'Lançamento'
];
var labels_strings = [ var labels_strings = [
'Labels', 'Compañías discográficas', 'Gravadoras' 'Labels', 'Compañías discográficas', 'Gravadoras'
]; ];
@ -50,7 +47,7 @@ function retrieveReleaseInfo(release_url) {
// Release information global to all Beatport releases // Release information global to all Beatport releases
var release = { var release = {
artist_credit: [], artist_credit: [],
title: $(contains_or("h3.interior-type", release_strings)).next().text().trim(), title: ProductDetail.name,
year: releaseDate[0], year: releaseDate[0],
month: releaseDate[1], month: releaseDate[1],
day: releaseDate[2], day: releaseDate[2],