mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-12-13 03:42:27 +00:00
beatport_pro_importer: no need to store id in release object
It is only used to match tracks.
This commit is contained in:
parent
3036d458b9
commit
a8f8f8b34e
1 changed files with 2 additions and 2 deletions
|
@ -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]) {
|
||||
|
|
Loading…
Reference in a new issue