Skip to content

Content rating overides#1336

Merged
bullmoose20 merged 3 commits into
developfrom
content_rating_overides
Jun 25, 2026
Merged

Content rating overides#1336
bullmoose20 merged 3 commits into
developfrom
content_rating_overides

Conversation

@bullmoose20

Copy link
Copy Markdown
Collaborator

What type of PR is this?

  • Bug Fix (non-breaking change which fixes an issue)
  • Feature/Tweak (non-breaking change which adds new functionality or enhances existing functionality)
  • Breaking Change (fix or feature that would break any existing functionality for users)
  • Documentation Update
  • Other

Description

Title
Add content-rating overlay overrides, preview controls, and Common Sense preview fixes
Summary
This branch extends the overlay override system to the content-rating families and brings their preview behavior in line with the bundled Kometa defaults. It adds override support for US movie/show, UK, DE, AU, NZ, and Common Sense content-rating overlays, copies the bundled preview assets into Quickstart’s static overlay defaults, and wires the Libraries canvas to render those badges through the shared overlay preview pipeline.
It also fixes the Common Sense-specific preview contract. Quickstart now treats the Common Sense text value as internal preview state, exposes a preview selector driven by the enabled use_* toggles, and keeps post_text as the YAML-facing field. The unrated edge case now matches the local Kometa default: NR renders without the + suffix.
What changed
Added source_overrides support for the content-rating overlay families in static/json/quickstart_overlays.json.
Added bundled content-rating preview assets under static/images/overlay-defaults/content_rating/.
Extended static/local-js/overlayHandler.js to:support content-rating preview dropdowns
resolve content-rating override images
refresh the canvas correctly on initial load and on preview changes
handle Common Sense preview rendering through the same pipeline
special-case Common Sense NR so preview matches Kometa defaults

Added hidden template-variable rendering in templates/partials/_macros.html so preview-only state can exist without showing a visible input row.
Common Sense behavior
text is now preview-only UI state for Common Sense.
Preview rating is the visible control.
Post Text still persists to final YAML.
NR preview renders as NR, not nr+.

Related Issues [optional]

  • Closes #

Which Environment Did You Test On?

  • Local Install (Windows/Linux/Mac via python quickstart.py)
  • Windows Executable
  • Linux Executable
  • macOS Executable
  • Docker
  • Other

@bullmoose20 bullmoose20 merged commit 65543d6 into develop Jun 25, 2026
7 checks passed
@bullmoose20 bullmoose20 deleted the content_rating_overides branch June 25, 2026 22:52
kometa-tokens Bot pushed a commit that referenced this pull request Jun 25, 2026
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