Fix TV shows rating not showing up

This commit is contained in:
tomkat83 2016-03-17 16:15:48 +01:00
parent 8dee81c6a2
commit 234a141cc6

View file

@ -1736,9 +1736,12 @@ class API():
def getAudienceRating(self): def getAudienceRating(self):
""" """
Returns the audience rating or None Returns the audience rating, 'rating' itself or None
""" """
return self.item.attrib.get('audienceRating', None) res = self.item.attrib.get('audienceRating')
if res is None:
res = self.item.attrib.get('rating')
return res
def getYear(self): def getYear(self):
""" """