From 95eb960737c9c781a298541117f900d05f6296bd Mon Sep 17 00:00:00 2001 From: augustjanse Date: Tue, 13 Jun 2017 12:25:02 +0200 Subject: [PATCH] Get title from ProductDetail --- beatport_pro_importer.user.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/beatport_pro_importer.user.js b/beatport_pro_importer.user.js index 7e3a05f..5f5b70c 100644 --- a/beatport_pro_importer.user.js +++ b/beatport_pro_importer.user.js @@ -36,9 +36,6 @@ function retrieveReleaseInfo(release_url) { }); return selectors.join(','); } - var release_strings = [ - 'Release', 'Lanzamiento', 'Sortie', 'Album', 'Lançamento' - ]; var labels_strings = [ 'Labels', 'Compañías discográficas', 'Gravadoras' ]; @@ -50,7 +47,7 @@ function retrieveReleaseInfo(release_url) { // Release information global to all Beatport releases var release = { artist_credit: [], - title: $(contains_or("h3.interior-type", release_strings)).next().text().trim(), + title: ProductDetail.name, year: releaseDate[0], month: releaseDate[1], day: releaseDate[2],