Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle title mismatches on Plex for titles with commas #327

Closed
CollinHeist opened this issue Apr 17, 2023 · 1 comment
Closed

Handle title mismatches on Plex for titles with commas #327

CollinHeist opened this issue Apr 17, 2023 · 1 comment
Assignees
Labels
invalid This doesn't seem right needs-merged Issue has been resolved on a development branch

Comments

@CollinHeist
Copy link
Owner

CollinHeist commented Apr 17, 2023

Searching for titles with commas results in Plex splitting the search into separate queries around the comma (see here).

To handle this, TCM should use the search() method instead of get(), and then validate the title before returning a result. Applicable code to change:

try:
series = library.get(series_info.full_name)
if series.year == series_info.year:
return series
raise NotFound
except NotFound:
pass

@CollinHeist CollinHeist added the invalid This doesn't seem right label Apr 17, 2023
@CollinHeist CollinHeist self-assigned this Apr 17, 2023
CollinHeist added a commit that referenced this issue Apr 17, 2023
@CollinHeist CollinHeist added the needs-merged Issue has been resolved on a development branch label Apr 17, 2023
@CollinHeist
Copy link
Owner Author

Opened a thread for Plex to fix this here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right needs-merged Issue has been resolved on a development branch
Projects
None yet
Development

No branches or pull requests

1 participant