-
-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MBS-12356: Correctly select + clean up Tidal store pages #2515
Conversation
@brainzbot, retest this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixing the auto-selected relationship type looks good, but the mixed changes with stores should probably be discussed separately as it isn’t clear it is either needed or an improvement.
Even though Tidal is operating in 61 countries (source: Tidal), the website remains available under a .com
domain only and it seems that the two letter-code has no influence on content, it can even be replaced with random letters such as xz
, to follow the example given in test: https://store.tidal.com/xz/artist/160. I initially thought it was related to the website UI language (see comment to MBS-10621) but it doesn’t seem to be the case anymore/either.
Different stores charge in different currencies, at the very least (https://store.tidal.com/us/album/108715503 is in USD but https://store.tidal.com/ee/album/108715503 is in EUR). Also, this isn't changing any current links, since store ones weren't usable anyway, only the new ones :) |
|
Huh, wtf. Now it's showing me my local store, but when I left that comment it did show it differently. Now that's confusing. |
Well then, rewrote this to remove the country code altogether (which seems to also work and just uses the user's own store) :) |
The Tidal store is not a streaming page, but a download one. We were automatically dropping the store bit and turning it into a streaming link (not sure if the two always exist, but I wouldn't be too confident, so we might have broken some links). Since it's a legitimate download store, we should deal with it as such. While Tidal has a country code for the store, it seems that the purchases happen on the user's local store; removing the country code from a link turns it into a redirect to the user's local store, so this just removes the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTMBDNT 🚢
I added a comment to the ticket about the extra cleanup for the two-letters code.
* master: Update POT files using the production database Update translations from Transifex MBS-12395: Report for videos in mediums that shouldn't support video (#2562) MBS-12356: Correctly select + clean up Tidal store pages (#2515) Add comment to ensure test data is kept Save AC redirects before swapping AC uses Document and standardize Controller::Aliases tests Document and standardize Controller::EditAlias tests Document and standardize Controller::DeleteAlias tests Document and standardize Controller::AddAlias tests MBS-9188: Improve LinkedIn URL cleanup (#2553) MBS-12419: Block Genius.com links at release level (#2560) MBS-12417: Update Soundcloud cleanup to remove ? parameters (#2552) Avoid declaring my $tx twice in one test MBS-12351: Also trim space only disambiguations (#2510) MBS-12376: Don't show spammers on area pages (#2554) MBS-12447: Also show area-series rels on series page (#2563) MBS-12393: Change TOWER RECORDS to all-caps as per store Japanese usage (#2558) Simplify the allowed hosts shortener list MBS-12383: Block smart links: bfan.link MBS-12396: Block smart links: hyperfollow.com MBS-12401: Block smart links: hypeddit.com MBS-12350: Block smart links: bio.link MBS-12352: Block smart links: streamerlinks.com Add basic tests for the artist credit page Add IDs to sections of ArtistCreditIndex MBS-12354: Check if AC IDs are valid before passing to the DB MBS-12312: Convert edit.tt to React MBS-12312: Convert history.tt to React MBS-12312: Convert diff.tt to React MBS-12312: Convert revision.tt to React MBS-12312: Remove unused summary.tt MBS-12400: fix non-musicbrainz-schema dumps (#2541) Sync incremental JSON dumps to trille
* beta: Update translations from Transifex Add custom hydration event for userscripts (#2566) Update POT files using the production database Update translations from Transifex MBS-12311: Allow adding annotations to genres (#2492) Don't ISE on non-existing latest annotation MBS-12456: Load editor for latest_annotation on annotation page MBS-12455: Show annotation info when loading empty revision MBS-12453: Don't crash on null annotation comparison Use index, not ID, to enable/disable annotation comparison Add basic genre create/edit tests Update POT files using the production database Update translations from Transifex MBS-12395: Report for videos in mediums that shouldn't support video (#2562) MBS-12356: Correctly select + clean up Tidal store pages (#2515) Add comment to ensure test data is kept Save AC redirects before swapping AC uses Document and standardize Controller::Aliases tests Document and standardize Controller::EditAlias tests Document and standardize Controller::DeleteAlias tests Document and standardize Controller::AddAlias tests MBS-9188: Improve LinkedIn URL cleanup (#2553) MBS-12419: Block Genius.com links at release level (#2560) MBS-12417: Update Soundcloud cleanup to remove ? parameters (#2552) Avoid declaring my $tx twice in one test MBS-12351: Also trim space only disambiguations (#2510) MBS-12376: Don't show spammers on area pages (#2554) MBS-12447: Also show area-series rels on series page (#2563) MBS-12393: Change TOWER RECORDS to all-caps as per store Japanese usage (#2558) Remove useless Area::Create _insert_hash MBS-10165: Use edit system for genre editing MBS-10165: Use edit system for genre adding MBS-10165: Use edit system for genre deletion MBS-10165: Basic preparations for genre edits Support genres in formatEntityTypeName Simplify the allowed hosts shortener list MBS-12383: Block smart links: bfan.link MBS-12396: Block smart links: hyperfollow.com MBS-12401: Block smart links: hypeddit.com MBS-12350: Block smart links: bio.link MBS-12352: Block smart links: streamerlinks.com Add basic tests for the artist credit page Add IDs to sections of ArtistCreditIndex MBS-12354: Check if AC IDs are valid before passing to the DB MBS-12312: Convert edit.tt to React MBS-12312: Convert history.tt to React MBS-12312: Convert diff.tt to React MBS-12312: Convert revision.tt to React MBS-12312: Remove unused summary.tt
Fix MBS-12356
The Tidal store is not a streaming page, but a download one. We were automatically dropping the store bit and turning it into a streaming link (not sure if the two always exist, but I wouldn't be too confident, so we might have broken some links). Since it's a legitimate download store, we should deal with it as such.
While Tidal has a country code for the store, it seems that the purchases happen on the user's local store; removing the country code from a link turns it into a redirect to the user's local store, so this just removes the code.