XBMCnfoMoviesImporter.bundle
XBMCnfoMoviesImporter.bundle copied to clipboard
Improved ratings support with other misc adjustments
- Reduced amount of logging for Info vs Debug to reduce log rolling
- Support for theme music
- Support for Kodi v18+ ratings format:
76.000000 0 - name
- max (will convert to 10 from any value in max if max is present)
- default (will prefer default='true' ratings and will not average additional ratings)
- critic vs audience ratings map
- TODO: convert this to UI configuration in the future
- BREAKING CHANGE: this will change previous critic ratings to audience ratings if the source is imdb/themoviedb/trakt
- average ratings - if multiple critic ratings exist, and no default set, take the average of them all (since Plex only supports a single rating for critic). same applies to audience ratings.
- Add votes to ratings in description
- Support more display formats for ratings in description (imdb decimal, rt 100 max with %, metacritic 100 max without %)
- Add images to ratings (limited support for IMDb icon in plex web, but other clients support more images)
Peter Pan example:
NFO file:
<rating>7.300000</rating>
<votes>137506</votes>
<ratings>
<rating name="tomatometerallcritics" max="100" default="false">
<value>79.000000</value>
<votes>0</votes>
</rating>
<rating name="metacritic" max="100" default="false">
<value>76.000000</value>
<votes>0</votes>
</rating>
<rating name="themoviedb" max="10" default="false">
<value>7.200000</value>
<votes>4353</votes>
</rating>
<rating name="imdb" max="10" default="true">
<value>7.300000</value>
<votes>137506</votes>
</rating>
</ratings>
Movie description: ★ tomatometerallcritics: 79% | metacritic: 76 | themoviedb: 7.2 (4,353 votes) | imdb: 7.3 (137,506 votes) ★
This results in an average critic rating of 7.8 and an audience rating of 7.3 (since imdb was set to default in nfo file).