Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/test_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,15 +881,15 @@ def _test_library_search(library, obj): # noqa: C901
elif field.type == "date":
searchValue = searchValue.strftime("%Y-%m-%d")
_do_test_library_search(library, obj, field, operator, searchValue)
searchValue = "1s"
searchValue = "0s"
_do_test_library_search(library, obj, field, operator, searchValue)


def _do_test_library_search(library, obj, field, operator, searchValue):
searchFilter = {field.key + operator.key[:-1]: searchValue}
results = library.search(libtype=obj.type, filters=searchFilter)

if operator.key.startswith("!") or operator.key.startswith(">>") and (searchValue == 1 or searchValue == "1s"):
if operator.key.startswith("!") or operator.key.startswith(">>") and (searchValue == 1 or searchValue == "0s"):
assert obj not in results
else:
assert obj in results, f"Unable to search {obj.type} by {field.key} using {operator.key} and value {searchValue}."
Expand Down
1 change: 1 addition & 0 deletions tests/test_playqueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import pytest


@pytest.mark.xfail(reason="Plex regression `playQueueTotalCount` value incorrect when item removed from PlayQueue")
def test_create_playqueue(plex, show):
# create the playlist
episodes = show.episodes()
Expand Down
1 change: 1 addition & 0 deletions tools/plex-bootstraptest.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ def alert_callback(data):
if not opts.unclaimed and account and account.subscriptionActive:
server.settings.get("GenerateIntroMarkerBehavior").set("never")
server.settings.get("GenerateCreditsMarkerBehavior").set("never")
server.settings.get("GenerateAdMarkerBehavior").set("never")
server.settings.get("GenerateVADBehavior").set("never")
server.settings.get("MusicAnalysisBehavior").set("never")
server.settings.get("GenerateBIFBehavior").set("never")
Expand Down