mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 19:53:17 +00:00
Add year attribute to albums
This commit is contained in:
parent
ec8c20d0fa
commit
382a4f45aa
1 changed files with 1 additions and 0 deletions
|
@ -142,6 +142,7 @@ class Album(Audio):
|
|||
self.parentTheme = data.attrib.get('parentTheme', NA)
|
||||
self.leafCount = cast(int, data.attrib.get('leafCount', NA))
|
||||
self.viewedLeafCount = cast(int, data.attrib.get('viewedLeafCount', NA))
|
||||
self.year = cast(int, data.attrib.get('year', NA))
|
||||
|
||||
def tracks(self, watched=None):
|
||||
childrenKey = '/library/metadata/%s/children' % self.ratingKey
|
||||
|
|
Loading…
Reference in a new issue