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

Skip to content

Conversation

@tommargar
Copy link
Owner

Summary

  • cache provider IDs per item when preparing Emby batch edits to avoid repeated lookups
  • reuse cached provider IDs for resets and final payload building while keeping single update_item call per item

Testing

  • not run (not requested)

Codex Task

…g-for-various-edit-operations-in-emby.py-q7oshl
@tommargar tommargar merged commit 6648077 into nightly_feature_emby_overlays_2 Nov 27, 2025
1 check failed
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".

modules/emby.py Outdated
Comment on lines 786 to 790
k: v
for k, v in entry.get("provider_ids", {}).items()
if k.lower() != self.EmbyServer.CUSTOM_RATING_PROVIDER.lower()
}
entry["update"][item_field] = filtered_ids

Choose a reason for hiding this comment

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

P1 Badge User rating removal leaves CustomRating intact

For userRating remove/reset batches the code builds filtered_ids without the CustomRating provider and stores it in update (lines 786-790), but EmbyServer.__update_item merges provider IDs instead of replacing them, so omitting CustomRating never deletes the existing value. As a result any userRating remove/reset (including episode edits) will silently leave the prior custom rating on the item instead of clearing it.

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