parent
1d79190574
commit
af961dbaf4
1 changed files with 5 additions and 1 deletions
|
@ -469,11 +469,15 @@ class API(object):
|
||||||
"""
|
"""
|
||||||
Get the content rating or None
|
Get the content rating or None
|
||||||
"""
|
"""
|
||||||
mpaa = self.item.get('contentRating', None)
|
mpaa = self.item.get('contentRating')
|
||||||
|
if mpaa is None:
|
||||||
|
return
|
||||||
# Convert more complex cases
|
# Convert more complex cases
|
||||||
if mpaa in ("NR", "UR"):
|
if mpaa in ("NR", "UR"):
|
||||||
# Kodi seems to not like NR, but will accept Rated Not Rated
|
# Kodi seems to not like NR, but will accept Rated Not Rated
|
||||||
mpaa = "Rated Not Rated"
|
mpaa = "Rated Not Rated"
|
||||||
|
elif mpaa.startswith('gb/'):
|
||||||
|
mpaa = mpaa.replace('gb/', 'UK:', 1)
|
||||||
return mpaa
|
return mpaa
|
||||||
|
|
||||||
def country_list(self):
|
def country_list(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue