gboudreau / XBMCnfoMoviesImporter.bundle

687 stars 155 forks source link

Improved ratings support with other misc adjustments #142

Open almightiest opened 2 years ago

almightiest commented 2 years ago
  1. Reduced amount of logging for Info vs Debug to reduce log rolling
  2. Support for theme music
  3. Support for Kodi v18+ ratings format:76.0000000
    • 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)
  4. 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
  5. 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.
  6. Add votes to ratings in description
  7. Support more display formats for ratings in description (imdb decimal, rt 100 max with %, metacritic 100 max without %)
  8. 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).