Skip to content

Commit

Permalink
fix(web): Prefer MB data as merge target for release actions
Browse files Browse the repository at this point in the history
Otherwise external artist/label IDs may not always be merged into
target data with MBIDs, which makes linking impossible.
  • Loading branch information
kellnerd committed Oct 14, 2024
1 parent 1de70a3 commit e506488
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/routes/release/actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ export default defineRoute(async (req, ctx) => {
providerIds.push(['MusicBrainz', releaseMbid]);

const lookup = new CombinedReleaseLookup({ urls, gtin, providerIds }, options);
release = await lookup.getMergedRelease();
// Since the release has already been imported and has MBIDs, prefer MB data as merge target.
release = await lookup.getMergedRelease(['MusicBrainz']);

// Combine and deduplicate release and track artists.
const trackArtists = release.media
Expand Down

0 comments on commit e506488

Please sign in to comment.