beatport_importer: support track length submit in milliseconds

This commit is contained in:
zyoshoka 2023-09-15 16:30:32 +09:00 committed by David Kellner
parent 8faf3d2418
commit d586c15fae

View file

@ -3,7 +3,7 @@
// @author VxJasonxV
// @namespace https://github.com/murdos/musicbrainz-userscripts/
// @description One-click importing of releases from beatport.com/release pages into MusicBrainz
// @version 2023.7.22.1
// @version 2023.9.15.1
// @downloadURL https://raw.githubusercontent.com/murdos/musicbrainz-userscripts/master/beatport_importer.user.js
// @updateURL https://raw.githubusercontent.com/murdos/musicbrainz-userscripts/master/beatport_importer.user.js
// @include http://www.beatport.com/release/*
@ -102,7 +102,7 @@ function retrieveReleaseInfo(release_url, release_data, tracks_data) {
mbtracks.push({
artist_credit: MBImport.makeArtistCredits(artists),
title: title,
duration: track.length,
duration: track.length_ms,
});
});