From a8f8f8b34eb0786f2a9134f91fdbbad609a7cc33 Mon Sep 17 00:00:00 2001 From: Laurent Monin Date: Fri, 12 Jun 2015 22:06:00 +0200 Subject: [PATCH] beatport_pro_importer: no need to store id in release object It is only used to match tracks. --- beatport_pro_importer.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beatport_pro_importer.user.js b/beatport_pro_importer.user.js index 45d0d47..9940b0e 100644 --- a/beatport_pro_importer.user.js +++ b/beatport_pro_importer.user.js @@ -31,7 +31,6 @@ function retrieveReleaseInfo(release_url) { release.packaging = 'None'; release.country = "XW"; release.status = 'official'; - release.id = $( "span.playable-play-all[data-release]" ).attr('data-release'); release.title = $( "h3.interior-type:contains('Release')" ).next().text().trim(); @@ -39,6 +38,7 @@ function retrieveReleaseInfo(release_url) { release.year = releaseDate[0]; release.month = releaseDate[1]; release.day = releaseDate[2]; + var release_id = $( "span.playable-play-all[data-release]" ).attr('data-release'); // URLs release.urls = []; @@ -63,7 +63,7 @@ function retrieveReleaseInfo(release_url) { var release_artists = []; $.each(the_tracks, function (idx, track) { - if (track.release.id != release.id) { + if (track.release.id != release_id) { return; } if (seen_tracks[track.id]) {