mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-25 13:10:17 +00:00
Fix rating search test
This commit is contained in:
parent
44d0a13254
commit
598a6654ba
1 changed files with 5 additions and 1 deletions
|
@ -572,7 +572,11 @@ def _test_library_search(library, obj):
|
|||
operators += [andOp]
|
||||
|
||||
for operator in operators:
|
||||
if fieldAttr == "unmatched" and operator.key == "!=" or fieldAttr == "userRating":
|
||||
if (
|
||||
fieldAttr == "unmatched" and operator.key == "!="
|
||||
or fieldAttr in {"audienceRating", "rating"} and operator.key in {"=", "!="}
|
||||
or fieldAttr == "userRating"
|
||||
):
|
||||
continue
|
||||
|
||||
value = getattr(obj, fieldAttr, None)
|
||||
|
|
Loading…
Reference in a new issue