From 9e075aec219bd1214bedce4fb820ea329c226c72 Mon Sep 17 00:00:00 2001 From: augustjanse Date: Tue, 13 Jun 2017 12:23:30 +0200 Subject: [PATCH] Get release date 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 5b3ea8c..7e3a05f 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_date_strings = [ - 'Release Date', 'Fecha de lanzamiento', 'Date de sortie', 'Veröffentlichungsdatum', 'Data de lançamento', 'Releasedatum' - ]; var release_strings = [ 'Release', 'Lanzamiento', 'Sortie', 'Album', 'Lançamento' ]; @@ -48,7 +45,7 @@ function retrieveReleaseInfo(release_url) { var catalog_strings = [ 'Catalog', 'Catálogo', 'Catalogue', 'Katalog', 'Catalogus' ]; - var releaseDate = $(contains_or(".category", release_date_strings)).next().text().split("-"); + var releaseDate = ProductDetail.date.published.split("-"); // Release information global to all Beatport releases var release = {