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

Skip to content

Conversation

@tommargar
Copy link
Owner

Summary

  • add a dedicated helper on the Plex class to clear the search choices cache
  • invoke that helper whenever smart-label collection operations directly add or remove labels
  • reuse the helper inside edit_tags so every direct tag mutation purges the cache and verified no other tag mutations bypass it

Testing

  • not run

Codex Task

@tommargar tommargar merged commit dcf07d8 into nightly_feature_emby_overlays_2 Nov 15, 2025
6 of 8 checks passed
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 518 to 526
uc_str = f"Public update channel."
elif chl_num == "8":
uc_str = f"PlexPass update channel."

def _clear_search_choices_cache(self):
if hasattr(self, "_search_choices_cache") and isinstance(self._search_choices_cache, dict):
self._search_choices_cache.clear()
else:
uc_str = f"Unknown update channel: {chl_num}."

Choose a reason for hiding this comment

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

P0 Badge Fix syntax error after injecting cache helper

The new _clear_search_choices_cache method is inserted before the surrounding try: block closes, so the parser sees a dedent from the try body without a matching except/finally. Importing modules/plex.py now raises SyntaxError: expected 'except' or 'finally' block at the method definition, preventing the module from loading at all. The helper must be moved outside the try block or the block closed before introducing the method.

Useful? React with 👍 / 👎.

@tommargar tommargar deleted the codex/add-helper-to-clear-search-choices-cache branch November 22, 2025 05:07
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