From 8bba39989bbe5c053d2b426e6e1f9b23851c9785 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Fri, 26 Feb 2021 23:01:00 -0800 Subject: [PATCH 1/2] Add tagline attribute to show --- plexapi/video.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plexapi/video.py b/plexapi/video.py index e32deca14..563969ff8 100644 --- a/plexapi/video.py +++ b/plexapi/video.py @@ -399,6 +399,7 @@ class Show(Video, ArtMixin, BannerMixin, PosterMixin, SplitMergeMixin, UnmatchMa roles (List<:class:`~plexapi.media.Role`>): List of role objects. similar (List<:class:`~plexapi.media.Similar`>): List of Similar objects. studio (str): Studio that created show (Di Bonaventura Pictures; 21 Laps Entertainment). + tagline (str): Show tag line. theme (str): URL to theme resource (/library/metadata//theme/). viewedLeafCount (int): Number of items marked as played in the show view. year (int): Year the show was released. @@ -427,6 +428,7 @@ def _loadData(self, data): self.roles = self.findItems(data, media.Role) self.similar = self.findItems(data, media.Similar) self.studio = data.attrib.get('studio') + self.tagline = data.attrib.get('tagline') self.theme = data.attrib.get('theme') self.viewedLeafCount = utils.cast(int, data.attrib.get('viewedLeafCount')) self.year = utils.cast(int, data.attrib.get('year')) From 75e3d4c53c3ff3878c3f8f7397895369a2d2dbcb Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Fri, 26 Feb 2021 23:02:38 -0800 Subject: [PATCH 2/2] Add show tag line to tests --- tests/test_video.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_video.py b/tests/test_video.py index a2e617019..c537473f3 100644 --- a/tests/test_video.py +++ b/tests/test_video.py @@ -588,6 +588,7 @@ def test_video_Show_attrs(show): assert show._server._baseurl == utils.SERVER_BASEURL assert show.studio == "HBO" assert utils.is_string(show.summary, gte=100) + assert show.tagline is None assert utils.is_metadata(show.theme, contains="/theme/") if show.thumb: assert utils.is_thumb(show.thumb)