Skip to content

Commit

Permalink
Add librarySectionTitle to Episode
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Aug 31, 2024
1 parent 30d7378 commit 61a6a6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plexapi/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,7 @@ class Episode(
guids (List<:class:`~plexapi.media.Guid`>): List of guid objects.
index (int): Episode number.
labels (List<:class:`~plexapi.media.Label`>): List of label objects.
librarySectionTitle (str): Library Section Title (local playlist item only).
markers (List<:class:`~plexapi.media.Marker`>): List of marker objects.
media (List<:class:`~plexapi.media.Media`>): List of media objects.
originallyAvailableAt (datetime): Datetime the episode was released.
Expand Down Expand Up @@ -954,6 +955,7 @@ def _loadData(self, data):
self.guids = self.findItems(data, media.Guid)
self.index = utils.cast(int, data.attrib.get('index'))
self.labels = self.findItems(data, media.Label)
self.librarySectionTitle = data.attrib.get('librarySectionTitle') # local playlist item
self.markers = self.findItems(data, media.Marker)
self.media = self.findItems(data, media.Media)
self.originallyAvailableAt = utils.toDatetime(data.attrib.get('originallyAvailableAt'), '%Y-%m-%d')
Expand Down

0 comments on commit 61a6a6c

Please sign in to comment.