Add year attribute to albums

This commit is contained in:
Håvard Gulldahl 2016-01-30 00:02:00 +01:00
parent ec8c20d0fa
commit 382a4f45aa

View file

@ -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