Plex-Auto-Collections icon indicating copy to clipboard operation
Plex-Auto-Collections copied to clipboard

"Directors" filter stopped working

Open theotocopulitos opened this issue 3 years ago • 11 comments

As of today (maybe 3-4 days before today, since I last used it), the directors filter started to fail. (sorry I cannot get the padding right)

This config: collections: _Director - Steven Spielberg_: directors: Steven Spielberg

fails with this error: Traceback (most recent call last): File "plex_auto_collections.py", line 1035, in <module> update_from_config(config_path, plex, False) File "plex_auto_collections.py", line 668, in update_from_config missing, map = add_to_collection(config_path, plex, m, v, c, plex_map, map, filters) File "d:\mypath\mza921 - Plex-Auto-Collections-master\app\plex_tools.py", line 242, in add_to_collection items = plex.Library.search(**search_terms) File "C:\Users\myuser\AppData\Local\Programs\Python\Python38\lib\site-packages\plexapi\library.py", line 669, in search args[category] = self._cleanSearchFilter(category, value, libtype) File "C:\Users\myuser\AppData\Local\Programs\Python\Python38\lib\site-packages\plexapi\library.py", line 717, in _cleanSearchFilter raise BadRequest('Unknown filter category: %s' % category) plexapi.exceptions.BadRequest: Unknown filter category: director

Other collections based on imdb and trakt lists keep working

theotocopulitos avatar Mar 04 '21 01:03 theotocopulitos

I had the same issue in a script I write and figured out that the Plex API endpoint is different in the beta branch of PMS so the plexapi dependency is failing. I raised the issue here but for an immediate fix you can roll back your PMS to the latest stable release

meisnate12 avatar Mar 04 '21 02:03 meisnate12

@meisnate12, but the thing is it was working until three days ago... your issue was reported a few months back, right?

theotocopulitos avatar Mar 04 '21 23:03 theotocopulitos

look at the latest 3 comments at the bottom

meisnate12 avatar Mar 04 '21 23:03 meisnate12

got'cha!

BTW, your script looks great!

theotocopulitos avatar Mar 04 '21 23:03 theotocopulitos

thanks, I'm glad you like it 😄

meisnate12 avatar Mar 04 '21 23:03 meisnate12

So, if im understanding this correct, for now we have to wait for an fix in pkkid/python-plexapi? And as an Workaround we may disable all plex_search features?

Sakujakira avatar Mar 15 '21 20:03 Sakujakira

Yup

meisnate12 avatar Mar 15 '21 23:03 meisnate12

It looks like the python-plexapi issue was resolved a few days ago. Have you been able to look into what changed to determine if an updated release of this that includes the change or if just updating the python-plexapi portion manually would resolve it?

maxtrax04 avatar Mar 22 '21 16:03 maxtrax04

updating the python-plexapi version in the requirements.txt may fix some issues but they haven't release a version with that commit yet. The latest version 4.4.1 doesn't include the fix so we wait until its released. In the meantime, you can take out PlexAPI==4.2.0 from requirements.txt and replace it with git+https://github.com/pkkid/python-plexapi.git to pull the latest commits

meisnate12 avatar Mar 22 '21 16:03 meisnate12

The above [Bug Fix] Addresses filter problems #220 fixed this issue for me. I'm not sure if this is in 2.9, so I just went into plex_auto_collections.py and changed from plexapi.library import Collections to from plexapi.collection import Collections and went into requirements.txt and changed PlexAPI==4.2.0 to PlexAPI==4.5.1

ramair02 avatar Apr 01 '21 14:04 ramair02

Check out Plex Meta Manager for an updated Plex Auto Collections

meisnate12 avatar Apr 01 '21 15:04 meisnate12