Skip to content

feat(bandcamp_importer): query discography links on both page and TralbumData hostnames#922

Merged
arsinclair merged 1 commit into
masterfrom
feat/discography-lookups-improve
Jun 6, 2026
Merged

feat(bandcamp_importer): query discography links on both page and TralbumData hostnames#922
arsinclair merged 1 commit into
masterfrom
feat/discography-lookups-improve

Conversation

@arsinclair

@arsinclair arsinclair commented Jun 6, 2026

Copy link
Copy Markdown
Collaborator

Some Bandcamp artists and labels carry a different base URL in TralbumData than the page the user is actually on. That mismatch is often a leftover from when Bandcamp supported whitelabel/custom-domain shops: the discography may be browsed on a *.bandcamp.com URL while TralbumData still points at a separate shop hostname (e.g. shop.hammockmusic.com).

Until now, discography MusicBrainz lookups were built from the TralbumData hostname alone. On those pages that meant we could miss existing MB links that editors had attached to the canonical Bandcamp URL—or to the old shop mirror—depending on which hostname was used in the database.

Look up both hostnames when they differ, and only show one icon per MusicBrainz release when both URLs resolve to the same entry.

Example discography page: https://hammock.bandcamp.com/music

…lbumData hostnames

Some Bandcamp artists and labels carry a different base URL in `TralbumData` than the page the user is actually on. That mismatch is often a leftover from when Bandcamp supported whitelabel/custom-domain shops: the discography may be browsed on a `*.bandcamp.com` URL while `TralbumData` still points at a separate shop hostname (e.g. `shop.hammockmusic.com`).

Until now, discography MusicBrainz lookups were built from the TralbumData hostname alone. On those pages that meant we could miss existing MB links that editors had attached to the canonical Bandcamp URL—or to the old shop mirror—depending on which hostname was used in the database.

Look up both hostnames when they differ, and only show one icon per MusicBrainz release when both URLs resolve to the same entry.
@arsinclair arsinclair self-assigned this Jun 6, 2026
@arsinclair arsinclair merged commit 4745f14 into master Jun 6, 2026
1 check passed
@arsinclair arsinclair deleted the feat/discography-lookups-improve branch June 6, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant