question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plex_search unknown filter

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
meisnate12commented, Mar 21, 2021

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

1reaction
meisnate12commented, Mar 15, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found