Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tommargar
Copy link
Owner

Summary

  • ensure overlay user ratings for Emby are read through ProviderIds[CustomRating]
  • warn when items only contain a CustomRating field without the provider ID entry

Testing

  • not run

Codex Task

@tommargar tommargar merged commit 61698bc into nightly_feature_emby_overlays_2 Nov 30, 2025
6 of 8 checks passed
@tommargar tommargar deleted the codex/add-check-for-custom-ratings-in-overlay branch November 30, 2025 21:06
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +342 to +346
"Overlay Warning: Emby custom ratings must be provided via "
"ProviderIds['CustomRating']; the CustomRating field is ignored."
)
if actual_value is None and hasattr(item, actual_attr):
actual_value = getattr(item, actual_attr)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Guard missing Emby user ratings to avoid runtime errors

When format_var == "user_rating" the new Emby-specific branch leaves actual_value as None when an item has no ProviderIds['CustomRating'] or userRating, then proceeds to the formatting block that calls float(actual_value) for mods like %, #, or / (see lines 535‑541). Unlike the previous path, this branch never raises Failed on a missing rating, so an unrated Emby item will now throw a TypeError during overlay rendering instead of being skipped with a warning, halting overlay processing for that library.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants