diff --git a/plexapi/video.py b/plexapi/video.py index c2957b1e5..6524f3392 100644 --- a/plexapi/video.py +++ b/plexapi/video.py @@ -407,6 +407,7 @@ class Show(Video, SplitMergeMixin, UnmatchMatchMixin, leafCount (int): Number of items in the show view. locations (List): List of folder paths where the show is found on disk. originallyAvailableAt (datetime): Datetime the show was released. + originalTitle (str): The original title of the show. rating (float): Show rating (7.9; 9.8; 8.1). roles (List<:class:`~plexapi.media.Role`>): List of role objects. similar (List<:class:`~plexapi.media.Similar`>): List of Similar objects. @@ -434,6 +435,7 @@ def _loadData(self, data): self.leafCount = utils.cast(int, data.attrib.get('leafCount')) self.locations = self.listAttrs(data, 'path', etag='Location') self.originallyAvailableAt = utils.toDatetime(data.attrib.get('originallyAvailableAt'), '%Y-%m-%d') + self.originalTitle = data.attrib.get('originalTitle') self.rating = utils.cast(float, data.attrib.get('rating')) self.roles = self.findItems(data, media.Role) self.similar = self.findItems(data, media.Similar) diff --git a/tests/test_video.py b/tests/test_video.py index 87c3014c8..0b7264c3e 100644 --- a/tests/test_video.py +++ b/tests/test_video.py @@ -566,6 +566,7 @@ def test_video_Show_attrs(show): assert len(show.locations) == 1 assert len(show.locations[0]) >= 10 assert utils.is_datetime(show.originallyAvailableAt) + assert show.originalTitle is None assert show.rating >= 8.0 assert utils.is_int(show.ratingKey) assert sorted([i.tag for i in show.roles])[:4] == [