-
Notifications
You must be signed in to change notification settings - Fork 200
Closed
Description
I'm trying to use LibrarySection.search to search using ! in the search filter and when I add the ! after actor, country, director, genre, and writer no matter what value I give it, it just returns every movie in my library. studio! and year! seemed to work but i haven't tested any other filters other then the ones mentioned in this post. what i ran to test is belowis below
def test(filters):
print(str(filters) + ": " + str(len(plex.Library.search(**filters))))
test({'actor': 'Will Smith'})
test({'actor!': 'Will Smith'})
test({'country': 'USA'})
test({'country!': 'USA'})
test({'director': 'Steven Spielberg'})
test({'director!': 'Steven Spielberg'})
test({'genre': 'Romance'})
test({'genre!': 'Romance'})
test({'genre': 'Comedy'})
test({'genre!': 'Comedy'})
test({'studio': 'Pixar'})
test({'studio!': 'Pixar'})
test({'year': '1990'})
test({'year!': '1990'})
test({'writer': 'Quentin Tarantino'})
test({'writer!': 'Quentin Tarantino'})
Output
{'actor': 'Will Smith'}: 21
{'actor!': 'Will Smith'}: 1780
{'country': 'USA'}: 1489
{'country!': 'USA'}: 1780
{'director': 'Steven Spielberg'}: 16
{'director!': 'Steven Spielberg'}: 1780
{'genre': 'Romance'}: 107
{'genre!': 'Romance'}: 1780
{'genre': 'Comedy'}: 603
{'genre!': 'Comedy'}: 1780
{'studio': 'Pixar'}: 9
{'studio!': 'Pixar'}: 1771
{'year': '1990'}: 15
{'year!': '1990'}: 1765
{'writer': 'Quentin Tarantino'}: 12
{'writer!': 'Quentin Tarantino'}: 1780
Am i doing something wrong or is this feature not working correctly?
Metadata
Metadata
Assignees
Labels
No labels