Skip to content

Fix Rotten Tomatoes Audience rating source mismatch#148

Open
mattsigal wants to merge 1 commit into
Moonfin-Client:masterfrom
mattsigal:feature/fix-rt-audience-ratings
Open

Fix Rotten Tomatoes Audience rating source mismatch#148
mattsigal wants to merge 1 commit into
Moonfin-Client:masterfrom
mattsigal:feature/fix-rt-audience-ratings

Conversation

@mattsigal

Copy link
Copy Markdown
Contributor

Rotten Tomatoes audience rating scores (the "popcornometer") were not rendering in the UI because of divergent source keys across the system: MDBList API returns the score source as popcorn, while the client app requests tomatoes_audience, and the server plugin configuration page used rtAudience. This mismatch caused the server's rating proxy to filter out the audience rating.

This pull request resolves the issue by normalizing the keys on the server side:

  • Maps both rtAudience and tomatoes_audience to popcorn when querying the MDBList API.
  • Returns the rating with the expected tomatoes_audience key so that client apps receive it correctly.
  • Normalizes rtAudience to tomatoes_audience in memory inside the resolved settings profiles.
  • Updates the server configuration page's source ID from rtAudience to tomatoes_audience, with compatibility to map legacy configs on load.

Changes Made

  • Modified MdbListController.cs to handle key translation for API lookups and returns.
  • Modified MoonfinSettingsService.cs to normalize rating source profiles.
  • Modified configPage.html to update picker source IDs and load mapping.

- Map rtAudience (legacy web) and tomatoes_audience (client) to popcorn when fetching from MDBList API.
- Return ratings with the tomatoes_audience source key to match the client's expected key.
- Update the server config page configuration list to use tomatoes_audience and dynamically map any existing rtAudience configurations to tomatoes_audience during load.
- Normalize rtAudience settings in the resolved user settings profiles in memory.
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

Build Successful

The plugin compiled successfully against .NET 8 / Jellyfin 10.10.0.

Property Value
Commit db880cd
Workflow Build #102

@mattsigal mattsigal changed the title Fix RT Audience rating source mismatch Fix Rotten Tomatoes Audience rating source mismatch Jun 10, 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