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

Add lowercasing ordinals (1st, 10th) and uppercase special words (IMAX, 3D, etc.) to edition tags #9880

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

brandonscript
Copy link

@brandonscript brandonscript commented Mar 28, 2024

Database Migration

NO

Description

Addresses #7649
(Original goal was "Make IMAX Uppercase in Edition Tags", this now handles both lowercase (ordinals) and uppercase, as covered in the tests:

Always lowercases ordinals, except when using [EDITION TAGS]:

  • 1st, 2nd, 3rd, 4th, 5th, 6th, 7th, 8th, 9th, 10th, ... 20th, ... 30th... etc.

Always uppercases special words, except when using [edition tags]:

  • Imax → IMAX
  • Hdr → HDR
  • Sdr → SDR
  • 3d → 3D

(And all mixed-case variants of these, e.g. imax, Imax, IMAX iMaX))

Screenshot (if UI related)

Todos

  • Tests
  • Translation Keys (./src/NzbDrone.Core/Localization/Core/en.json)
  • Wiki Updates (Unsure if needed?)

Issues Fixed or Closed by this PR

- Always lowercase ordinals (1st, 2nd, 10th, etc.)
- Always uppercase special words (IMAX, 3D, SDR, HDR) in edition tags
@github-actions github-actions bot added the Area: Organizer Issue is related to the Organizer label Mar 28, 2024
@mynameisbogdan
Copy link
Collaborator

Hey, I was thinking about this since you posted your suggestion on #7649 if we should do this instead ahead of saving to the database, and avoid changing capitalization when applying the custom formats.

It's just a thought to debate upon, not a change request. 😄

@bakerboy448
Copy link
Contributor

tangent thought to this - any ideas for Extended vs Extended Cut and standardizing editions in general?

@brandonscript
Copy link
Author

@bakerboy448 I ended up doing this at one point: https://github.com/brandonscript/fylm/blob/main/fylm/fylmlib/parser.py#L310

(Would be a different ticket and PR, but I like it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Organizer Issue is related to the Organizer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make IMAX Uppercase in Edition Tags
3 participants