beatport_pro_importer: no need to store id in release object

It is only used to match tracks.
This commit is contained in:
Laurent Monin 2015-06-12 22:06:00 +02:00
parent 3036d458b9
commit a8f8f8b34e

View file

@ -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]) {