mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Add fields to plexapi.photo.Photoalbum and plexapi.photo.Photo
This commit is contained in:
parent
47695debdd
commit
76da200794
1 changed files with 2 additions and 0 deletions
|
@ -48,6 +48,7 @@ class Photoalbum(PlexPartialObject):
|
|||
self.title = data.attrib.get('title')
|
||||
self.type = data.attrib.get('type')
|
||||
self.updatedAt = utils.toDatetime(data.attrib.get('updatedAt'))
|
||||
self.fields = self.findItems(data, media.Field)
|
||||
|
||||
def albums(self, **kwargs):
|
||||
""" Returns a list of :class:`~plexapi.photo.Photoalbum` objects in this album. """
|
||||
|
@ -136,6 +137,7 @@ class Photo(PlexPartialObject):
|
|||
self.year = utils.cast(int, data.attrib.get('year'))
|
||||
self.media = self.findItems(data, media.Media)
|
||||
self.tag = self.findItems(data, media.Tag)
|
||||
self.fields = self.findItems(data, media.Field)
|
||||
|
||||
def photoalbum(self):
|
||||
""" Return this photo's :class:`~plexapi.photo.Photoalbum`. """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue