From 234a141cc64dcdf015411d317d6bdec51ad463dd Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Thu, 17 Mar 2016 16:15:48 +0100 Subject: [PATCH] Fix TV shows rating not showing up --- resources/lib/PlexAPI.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/lib/PlexAPI.py b/resources/lib/PlexAPI.py index deef193b..7daa6d88 100644 --- a/resources/lib/PlexAPI.py +++ b/resources/lib/PlexAPI.py @@ -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): """