From 306f354b6bce761f7a6f21b5ea7e29eb4e852ec5 Mon Sep 17 00:00:00 2001 From: Chaz Larson Date: Mon, 2 Oct 2023 18:15:24 -0500 Subject: [PATCH] Don't tack empty args onto the query --- modules/plex.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/plex.py b/modules/plex.py index d35826b7..ee60ee24 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -570,7 +570,11 @@ class Plex(Library): @retry(stop_max_attempt_number=6, wait_fixed=10000, retry_on_exception=util.retry_if_not_plex) def fetchItems(self, uri_args): - return self.Plex.fetchItems(f"/library/sections/{self.Plex.key}/all{uri_args}") + query_path = f"/library/sections/{self.Plex.key}/all{uri_args}" + if uri_args is None: + query_path = f"/library/sections/{self.Plex.key}/all" + + return self.Plex.fetchItems(query_path) def get_all(self, builder_level=None, load=False): if load and builder_level in [None, "show", "artist", "movie"]: