mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-26 21:50:20 +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.parentTheme = data.attrib.get('parentTheme', NA)
|
||||||
self.leafCount = cast(int, data.attrib.get('leafCount', NA))
|
self.leafCount = cast(int, data.attrib.get('leafCount', NA))
|
||||||
self.viewedLeafCount = cast(int, data.attrib.get('viewedLeafCount', NA))
|
self.viewedLeafCount = cast(int, data.attrib.get('viewedLeafCount', NA))
|
||||||
|
self.year = cast(int, data.attrib.get('year', NA))
|
||||||
|
|
||||||
def tracks(self, watched=None):
|
def tracks(self, watched=None):
|
||||||
childrenKey = '/library/metadata/%s/children' % self.ratingKey
|
childrenKey = '/library/metadata/%s/children' % self.ratingKey
|
||||||
|
|
Loading…
Reference in a new issue