diff --git a/modules/convert.py b/modules/convert.py index 8f817cf6..58fbdcb2 100644 --- a/modules/convert.py +++ b/modules/convert.py @@ -209,7 +209,7 @@ class Convert: try: if item_type == "plex": try: - for guid_tag in library.get_guids(item): + for guid_tag in item.guids: url_parsed = requests.utils.urlparse(guid_tag.id) if url_parsed.scheme == "tvdb": tvdb_id.append(int(url_parsed.netloc)) elif url_parsed.scheme == "imdb": imdb_id.append(url_parsed.netloc) diff --git a/modules/plex.py b/modules/plex.py index f44d7cf0..1e8153a0 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -279,7 +279,7 @@ class Plex(Library): def get_all(self): logger.info(f"Loading All {self.type}s from Library: {self.name}") - key = f"/library/sections/{self.Plex.key}/all?type={utils.searchType(self.Plex.TYPE)}" + key = f"/library/sections/{self.Plex.key}/all?includeGuids=1&type={utils.searchType(self.Plex.TYPE)}" container_start = 0 container_size = plexapi.X_PLEX_CONTAINER_SIZE results = [] @@ -317,11 +317,6 @@ class Plex(Library): def collection_order_query(self, collection, data): collection.sortUpdate(sort=data) - @retry(stop_max_attempt_number=6, wait_fixed=10000, retry_on_exception=util.retry_if_not_plex) - def get_guids(self, item): - self.reload(item) - return item.guids - @retry(stop_max_attempt_number=6, wait_fixed=10000, retry_on_exception=util.retry_if_not_plex) def reload(self, item): try: diff --git a/requirements.txt b/requirements.txt index cc64f92c..c8aebe90 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -PlexAPI==4.7.1 +PlexAPI==4.7.2 tmdbv3api==1.7.6 arrapi==1.1.3 lxml==4.6.3