Fix TV shows rating not showing up
This commit is contained in:
parent
8dee81c6a2
commit
234a141cc6
1 changed files with 5 additions and 2 deletions
|
@ -1736,9 +1736,12 @@ class API():
|
|||
|
||||
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):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue