Skip to content

MBS-14279: Support Amazon Belgium links#3732

Merged
reosarevok merged 1 commit intometabrainz:masterfrom
reosarevok:MBS-14279
Mar 3, 2026
Merged

MBS-14279: Support Amazon Belgium links#3732
reosarevok merged 1 commit intometabrainz:masterfrom
reosarevok:MBS-14279

Conversation

@reosarevok
Copy link
Member

Implement MBS-14279

Description

Amazon Belgium links are not handled as Amazon links at all at the moment. This just adds com.be as one of the supported domains that make proper and expected Amazon pages.

AI usage

None

Testing

Added a test (which for some reason seems to be failing locally - what am I missing?)

@reosarevok reosarevok added QoL Non-urgent quality of life improvements URL handling labels Mar 2, 2026
@mwiencek
Copy link
Member

mwiencek commented Mar 2, 2026

Apparently com.be is not a real public suffix for Belgium, just a private domain (owned by Amazon?). So tldts parses the domain as "com.be".

You can fix those test failures by adding amazon.com.be and music.amazon.com.be to the relevant hostname keys, since they won't currently be matched by amazon.* or music.amazon.*.

There seem to be no Amazon Music Belgium pages, so not supporting
those.

Amusingly, apparently Amazon probably couldn't get amazon.be for
a decent price, so they went for amazon.com.be - it seems that
com.be is not a valid public suffix for Belgium, but a private
domain Amazon probably owns. As such, we need to have amazon.com.be
separately in the hostname options, since the hostname is not seen
by amazon.*.
@reosarevok reosarevok marked this pull request as ready for review March 3, 2026 11:12
@reosarevok
Copy link
Member Author

Thanks! I wouldn't have thought of that being an option 😅

@reosarevok reosarevok merged commit ea1f50e into metabrainz:master Mar 3, 2026
7 checks passed
@reosarevok reosarevok deleted the MBS-14279 branch March 3, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

QoL Non-urgent quality of life improvements URL handling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants