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

.search(unwatched=True) broken with recent PMS update #691

Closed
ParadoxGBB opened this issue Mar 10, 2021 · 3 comments · Fixed by #693
Closed

.search(unwatched=True) broken with recent PMS update #691

ParadoxGBB opened this issue Mar 10, 2021 · 3 comments · Fixed by #693

Comments

@ParadoxGBB
Copy link

Describe the issue

Even with the updates outlined in #623, these appear to be broken again with the recent update to Plex 1.22.0.4163. I'd appreciate someone confirming or denying that this is working.

Code snippets

for currentSection in plexServer.library.sections():
if currentSection.type == 'movie':
unwatchedLibraryItems = currentSection.search(unwatched=True)
elif currentSection.type == 'video':
unwatchedLibraryItems = currentSection.search(unwatched=True)
elif currentSection.type == 'show':
unwatchedLibraryItems = currentSection.searchEpisodes(**{'episode.unwatched':True})

This worked before.

Expected behavior

Successful search, results returned. Instead:

[3/10/2021 3:10:25 PM] [python.exe]: File "C:\Python\lib\site-packages\plexapi\library.py", line 717, in _cleanSearchFilter
[3/10/2021 3:10:25 PM] [python.exe]: raise BadRequest('Unknown filter category: %s' % category)
[3/10/2021 3:10:25 PM] [python.exe]: plexapi.exceptions.BadRequest: Unknown filter category: unwatched

Enviroment (please complete the following information):

  • OS: Windows 10
  • Plex version 1.22.0.4163
  • Python Version Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32
  • PlexAPI version 4.3.1

Additional context

@Darthmiki
Copy link

All filters stopped working. filterFields() returns empty list.

@ParadoxGBB
Copy link
Author

Seemed to be called out in #595, towards the bottom

@ParadoxGBB
Copy link
Author

Patched 4.4.1 with the change in 16a1c61 and things work great on latest bits. Thanks!

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 a pull request may close this issue.

2 participants