Skip to content
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

Merged
merged 1 commit into from
Jun 13, 2022

Conversation

reosarevok
Copy link
Member

@reosarevok reosarevok commented May 10, 2022

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.

@reosarevok reosarevok added the Bug Bugs that should be checked/fixed soonish label May 10, 2022
@reosarevok
Copy link
Member Author

@brainzbot, retest this please

Copy link
Contributor

@yvanzo yvanzo left a 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.

@reosarevok
Copy link
Member Author

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 :)

@yvanzo
Copy link
Contributor

yvanzo commented May 30, 2022

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).

  • The currency is not displayed on these pages for me, maybe because I don’t have an account on that website.
  • When I click on “Download” from any of these pages, it redirects me to the same checkout page on the local Tidal store of my current country, in EUR.

@reosarevok
Copy link
Member Author

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.

@yvanzo yvanzo marked this pull request as draft June 10, 2022 11:24
@reosarevok
Copy link
Member Author

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.
@reosarevok reosarevok marked this pull request as ready for review June 13, 2022 09:58
Copy link
Contributor

@yvanzo yvanzo left a 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.

@reosarevok reosarevok merged commit 61c3142 into metabrainz:master Jun 13, 2022
@reosarevok reosarevok deleted the MBS-12356 branch June 13, 2022 16:28
reosarevok added a commit that referenced this pull request Jun 13, 2022
* 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
reosarevok added a commit that referenced this pull request Jun 20, 2022
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bugs that should be checked/fixed soonish
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants