2017-05-07, 13:22
OMDB api for RottenTomates are back.....
Marcel can you add this new insted of old (who have" N/A")
I change (add new properties) omdb.py and have info.
Ratings.0.Source - "'Internet Movie Database" ##/10
Ratings.1.Source - "''Rotten Tomatoes" ##
Ratings.2.Source - "'Metacritic" ##/100
Marcel can you add this new insted of old (who have" N/A")
I change (add new properties) omdb.py and have info.
Code:
SkinHelper.ListItem.Ratings.0.Source
SkinHelper.ListItem.Ratings.0.Value
SkinHelper.ListItem.Ratings.1.Source
SkinHelper.ListItem.Ratings.1.Value
SkinHelper.ListItem.Ratings.2.Source
SkinHelper.ListItem.Ratings.2.Value
Ratings.1.Source - "''Rotten Tomatoes" ##
Ratings.2.Source - "'Metacritic" ##/100
Code:
elif data.get("Ratings"):
Ratings = []
for count, tag in enumerate(data["Ratings"]):
Ratings.append(tag["Source"])
result["Ratings.%s.source" % count] = tag["Source"]
if tag.get("Value"):
result["Ratings.%s.value" % count] = tag["Value"].replace("%", "")