Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #22 from bushnoh/jamieu-21
Browse files Browse the repository at this point in the history
Fix for #21
  • Loading branch information
jamieu authored Jun 6, 2018
2 parents 08d5219 + fdf4f35 commit 6fc6f69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/lib/mubi.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ def get_film_metadata(self, film_overview):
overlay=6 if hd else 0,
genre=', '.join(film_overview['genres']),
originaltitle=film_overview['original_title'],
rating=film_overview['average_rating'] * 2, # Out of 5, kodi uses 10
# Out of 5, kodi uses 10
rating=film_overview['average_rating'] * 2 if film_overview['average_rating'] is not None else None,
votes=film_overview['number_of_ratings'],
castandrole=cast,
trailer=film_overview['trailer_url']
Expand Down

0 comments on commit 6fc6f69

Please sign in to comment.