Skip to content

fix(qobuz_importer): duplicate Qobuz discography MB icons - #1003

Merged
arsinclair merged 1 commit into
masterfrom
fix/qobuz-double-insertion
Jul 19, 2026
Merged

fix(qobuz_importer): duplicate Qobuz discography MB icons#1003
arsinclair merged 1 commit into
masterfrom
fix/qobuz-double-insertion

Conversation

@arsinclair

Copy link
Copy Markdown
Collaborator

Qobuz discography pages look up multiple URL aliases for the same entity, including localized www.qobuz.com URLs and open.qobuz.com URLs. When more than one alias resolves to the same MusicBrainz entity, the callback inserted the same MB icon multiple times before the same Qobuz link.

Deduplicate inserted MB links by their target href before adding them to the discography item. This preserves multiple distinct MB matches while suppressing duplicate icons from equivalent Qobuz URL variants.

Also avoid re-inserting search placeholders when an MB/search indicator already exists before the Qobuz link. Search placeholders are still removed when a real MB link is inserted, since the resolved icon replaces the fallback search link.

Qobuz discography pages look up multiple URL aliases for the same entity, including localized www.qobuz.com URLs and open.qobuz.com URLs. When more than one alias resolves to the same MusicBrainz entity, the callback inserted the same MB icon multiple times before the same Qobuz link.

Deduplicate inserted MB links by their target href before adding them to the discography item. This preserves multiple distinct MB matches while suppressing duplicate icons from equivalent Qobuz URL variants.

Also avoid re-inserting search placeholders when an MB/search indicator already exists before the Qobuz link. Search placeholders are still removed when a real MB link is inserted, since the resolved icon replaces the fallback search link.
@arsinclair arsinclair self-assigned this Jul 19, 2026
@arsinclair
arsinclair merged commit 7e03d1f into master Jul 19, 2026
1 check passed
@arsinclair
arsinclair deleted the fix/qobuz-double-insertion branch July 19, 2026 06:57
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