From 6e0b4bb8fa9d239f377d6c1d741bfdc2096ecd43 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Sat, 13 Mar 2021 01:06:21 -0500 Subject: [PATCH] updated PlexAPI to 4.4.1 --- modules/config.py | 3 +-- modules/plex.py | 3 +-- requirements.txt | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/config.py b/modules/config.py index b78ff645..49c1892c 100644 --- a/modules/config.py +++ b/modules/config.py @@ -692,8 +692,7 @@ class Config: if url_parsed.scheme == "tmdb": tmdb_id = int(url_parsed.netloc) elif url_parsed.scheme == "imdb": imdb_id = url_parsed.netloc elif item_type == "plex" and check_id == "show": - item.reload() - for guid_tag in item.findItems(item._data, Guid): + for guid_tag in item.guids: url_parsed = requests.utils.urlparse(guid_tag.id) if url_parsed.scheme == "tvdb": tvdb_id = int(url_parsed.netloc) elif url_parsed.scheme == "imdb": imdb_id = url_parsed.netloc diff --git a/modules/plex.py b/modules/plex.py index d7c69644..6301ccf6 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -295,8 +295,7 @@ class PlexAPI: add_edit("content_rating", item.contentRating, self.metadata[m], key="contentRating") add_edit("original_title", item.originalTitle, self.metadata[m], key="originalTitle", value=original_title) add_edit("studio", item.studio, self.metadata[m], value=studio) - item_tagline = item.tagline if self.is_movie else item._data.attrib.get("tagline") - add_edit("tagline", item_tagline, self.metadata[m], value=tagline) + add_edit("tagline", item.tagline, self.metadata[m], value=tagline) add_edit("summary", item.summary, self.metadata[m], value=summary) if len(edits) > 0: logger.debug(f"Details Update: {edits}") diff --git a/requirements.txt b/requirements.txt index eb0b4ffc..7ca0e5ae 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ # Remove # Less common, pinned -PlexAPI==4.4.0 +PlexAPI==4.4.1 tmdbv3api==1.7.5 trakt.py==4.2.0 # More common, flexible