Plex_search unknown filter
See original GitHub issueI am seeing a lot of errors in the log where plex_search isn’t working anymore. This worked in a previous version but I can’t seem to figure out if it’s a bug or something wrong with my config.
Sample log:
Studio
[2021-03-03 16:49:47,487] [util.py:703] [INFO] |====================================================================================================|
[2021-03-03 16:49:47,487] [util.py:707] [INFO] | Illumination Entertainment Collection |
[2021-03-03 16:49:47,487] [util.py:708] [INFO] |====================================================================================================|
[2021-03-03 16:49:47,487] [config.py:373] [INFO] | |
[2021-03-03 16:49:47,488] [builder.py:192] [INFO] | Scanning Illumination Entertainment Collection |
[2021-03-03 16:49:47,488] [builder.py:219] [DEBUG] | |
[2021-03-03 16:49:47,488] [builder.py:220] [DEBUG] | Method: template |
[2021-03-03 16:49:47,488] [builder.py:221] [DEBUG] | Value: ordereddict([('name', 'Studio'), ('studio', 'Illumination Entertainment')]) |
[2021-03-03 16:49:47,488] [builder.py:219] [DEBUG] | |
[2021-03-03 16:49:47,488] [builder.py:220] [DEBUG] | Method: summary |
[2021-03-03 16:49:47,488] [builder.py:221] [DEBUG] | Value: Illumination is an American film and animation studio founded by Chris Meledandri in 2007 and owned by Universal Pictures, a division of NBCUniversal, which is itself a division of Comcast. Meledandri produces the films, while Universal finances and distributes all the films. The studio is responsible for the Despicable Me and The Secret Life of Pets franchises and the film adaptations of Dr. Seuss’ books The Lorax and How the Grinch Stole Christmas. The Minions, characters from the Despicable Me series, are the studio's mascots. |
[2021-03-03 16:49:47,489] [builder.py:219] [DEBUG] | |
[2021-03-03 16:49:47,489] [builder.py:220] [DEBUG] | Method: plex_search |
[2021-03-03 16:49:47,489] [builder.py:221] [DEBUG] | Value: {'studio': 'Illumination Entertainment'} |
[2021-03-03 16:49:47,489] [builder.py:219] [DEBUG] | |
[2021-03-03 16:49:47,489] [builder.py:220] [DEBUG] | Method: sort_title |
[2021-03-03 16:49:47,489] [builder.py:221] [DEBUG] | Value: +++_Illumination Entertainment |
[2021-03-03 16:49:47,489] [builder.py:219] [DEBUG] | |
[2021-03-03 16:49:47,489] [builder.py:220] [DEBUG] | Method: collection_order |
[2021-03-03 16:49:47,489] [builder.py:221] [DEBUG] | Value: release |
[2021-03-03 16:49:47,495] [config.py:396] [INFO] | |
[2021-03-03 16:49:47,496] [config.py:398] [INFO] | Sync Mode: sync |
[2021-03-03 16:49:47,628] [builder.py:570] [DEBUG] | |
[2021-03-03 16:49:47,628] [builder.py:571] [DEBUG] | Method: plex_search |
[2021-03-03 16:49:47,628] [builder.py:572] [DEBUG] | Values: [[('studio', ['Illumination Entertainment'])]] |
[2021-03-03 16:49:47,628] [builder.py:592] [INFO] | |
[2021-03-03 16:49:47,629] [builder.py:593] [DEBUG] | Value: [('studio', ['Illumination Entertainment'])] |
[2021-03-03 16:49:47,629] [builder.py:613] [INFO] | Processing Plex Search: studio(Illumination Entertainment) |
[2021-03-03 16:49:47,636] [util.py:660] [DEBUG] | Traceback (most recent call last): |
| File "/modules/config.py", line 410, in update_libraries
| builder.run_methods(collection_obj, collection_name, rating_key_map, movie_map, show_map)
| File "/modules/builder.py", line 614, in run_methods
| items = self.library.Plex.search(**search_terms)
| File "/usr/local/lib/python3.9/site-packages/plexapi/library.py", line 668, in search
| args[category] = self._cleanSearchFilter(category, value, libtype)
| File "/usr/local/lib/python3.9/site-packages/plexapi/library.py", line 717, in _cleanSearchFilter
| raise BadRequest('Unknown filter category: %s' % category)
| plexapi.exceptions.BadRequest: Unknown filter category: studio
|
[2021-03-03 16:49:47,637] [config.py:425] [ERROR] | Unknown Error: Unknown filter category: studio
Actor
[2021-03-03 16:54:55,494] [util.py:703] [INFO] |====================================================================================================|
[2021-03-03 16:54:55,494] [util.py:707] [INFO] | Adam Sandler Collection |
[2021-03-03 16:54:55,494] [util.py:708] [INFO] |====================================================================================================|
[2021-03-03 16:54:55,494] [config.py:373] [INFO] | |
[2021-03-03 16:54:55,495] [builder.py:192] [INFO] | Scanning Adam Sandler Collection |
[2021-03-03 16:54:55,571] [builder.py:219] [DEBUG] | |
[2021-03-03 16:54:55,571] [builder.py:220] [DEBUG] | Method: template |
[2021-03-03 16:54:55,572] [builder.py:221] [DEBUG] | Value: ordereddict([('name', 'Actor Writer'), ('person', 19292)]) |
[2021-03-03 16:54:55,572] [builder.py:219] [DEBUG] | |
[2021-03-03 16:54:55,572] [builder.py:220] [DEBUG] | Method: actor |
[2021-03-03 16:54:55,572] [builder.py:221] [DEBUG] | Value: tmdb |
[2021-03-03 16:54:55,572] [builder.py:219] [DEBUG] | |
[2021-03-03 16:54:55,572] [builder.py:220] [DEBUG] | Method: writer |
[2021-03-03 16:54:55,572] [builder.py:221] [DEBUG] | Value: tmdb |
[2021-03-03 16:54:55,573] [builder.py:219] [DEBUG] | |
[2021-03-03 16:54:55,573] [builder.py:220] [DEBUG] | Method: tmdb_person |
[2021-03-03 16:54:55,573] [builder.py:221] [DEBUG] | Value: 19292 |
[2021-03-03 16:54:55,573] [builder.py:219] [DEBUG] | |
[2021-03-03 16:54:55,573] [builder.py:220] [DEBUG] | Method: sort_title |
[2021-03-03 16:54:55,573] [builder.py:221] [DEBUG] | Value: +_Adam Sandler |
[2021-03-03 16:54:55,573] [builder.py:219] [DEBUG] | |
[2021-03-03 16:54:55,573] [builder.py:220] [DEBUG] | Method: sync_mode |
[2021-03-03 16:54:55,573] [builder.py:221] [DEBUG] | Value: sync |
[2021-03-03 16:54:55,573] [builder.py:219] [DEBUG] | |
[2021-03-03 16:54:55,574] [builder.py:220] [DEBUG] | Method: collection_order |
[2021-03-03 16:54:55,574] [builder.py:221] [DEBUG] | Value: release |
[2021-03-03 16:54:55,579] [config.py:396] [INFO] | |
[2021-03-03 16:54:55,579] [config.py:398] [INFO] | Sync Mode: sync |
[2021-03-03 16:54:55,662] [builder.py:570] [DEBUG] | |
[2021-03-03 16:54:55,662] [builder.py:571] [DEBUG] | Method: plex_search |
[2021-03-03 16:54:55,662] [builder.py:572] [DEBUG] | Values: [[('actor', ['Adam Sandler'])]] |
[2021-03-03 16:54:55,662] [builder.py:592] [INFO] | |
[2021-03-03 16:54:55,662] [builder.py:593] [DEBUG] | Value: [('actor', ['Adam Sandler'])] |
[2021-03-03 16:54:55,662] [builder.py:613] [INFO] | Processing Plex Search: actor(Adam Sandler) |
[2021-03-03 16:54:55,669] [util.py:660] [DEBUG] | Traceback (most recent call last): |
| File "/modules/config.py", line 410, in update_libraries
| builder.run_methods(collection_obj, collection_name, rating_key_map, movie_map, show_map)
| File "/modules/builder.py", line 614, in run_methods
| items = self.library.Plex.search(**search_terms)
| File "/usr/local/lib/python3.9/site-packages/plexapi/library.py", line 668, in search
| args[category] = self._cleanSearchFilter(category, value, libtype)
| File "/usr/local/lib/python3.9/site-packages/plexapi/library.py", line 717, in _cleanSearchFilter
| raise BadRequest('Unknown filter category: %s' % category)
| plexapi.exceptions.BadRequest: Unknown filter category: actor
|
[2021-03-03 16:54:55,670] [config.py:425] [ERROR] | Unknown Error: Unknown filter category: actor
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (9 by maintainers)
Top Results From Across the Web
Python PlexAPI Documentation
for video in plex.search('Game'): ... NotFound – Unknown filter field. Example ... NotFound – When applying an unknown sort or filter.
Read more >Library plexapi.library — Python PlexAPI documentation
NotFound – When applying an unknown sort or filter. Sorting Results. The search results can be sorted by including the sort parameter. See...
Read more >How to Bend Plex to Your Will to Handle Complex Libraries ...
Use Smart Collections to Dynamically Categorize Content According to Search Filters. For any of the metadata exposed by the Plex user interface, ...
Read more >Color Filter Design for Multiple Illuminants and Detectors
The color filters are designed using sim- plex search, Vora's measure of goodness, and linear mini- mum mean square estimation. Radiance and reflectance....
Read more >Boston CROs
Laboratory for the Identification and Characterization of Unknown Substances ... Plex Search ties together large and disparate data sources and reveals the ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
it does and ive been working on the fix update but I don’t plan on releasing it until they up the version on plexAPI which should happen shortly
I don’t know if it’s necessarily the exact same issue do you mind posting your meta.log and metadata file in the other thread so i can see if it helps any