2018-09-17, 02:42
Hoping SHS can help me with 2 things I'm messing around with in my customized skin. Angelinas has been offering lost of assistance to me over PM but I feel bad always bugging him for his exceptional help!
I've used Universal Movie Scraper to re-scrape my library (still a WIP) to pull Rotten Tomatoes, Metacritic and TMDB scores directly into the movie information and .nfo. These pull as a single digit with decimal value, and not a 2 digit value that could then easily be skinned to show as a percent. For example - "Solo: A Star Wars Story"
My label code is as follows;
Which shows my a rating of '6.4%' when it should be '64%'.
UMS can't scrape these ratings without the decimal in the wrong place as a part of Kodi Core and Kodi itself doesn't seem to have a method to correct for this. Can SHS convert these numbers, multiple them by 10, Harry Potter Wizard magic them to look nice?
Thanks for all info!
I've used Universal Movie Scraper to re-scrape my library (still a WIP) to pull Rotten Tomatoes, Metacritic and TMDB scores directly into the movie information and .nfo. These pull as a single digit with decimal value, and not a 2 digit value that could then easily be skinned to show as a percent. For example - "Solo: A Star Wars Story"
Code:
<ratings>
<rating name="imdb" max="10" default="true">
<value>7.100000</value>
<votes>126565</votes>
</rating>
<rating name="metacritic" max="10">
<value>6.200000</value>
<votes>54</votes>
</rating>
<rating name="themoviedb" max="10">
<value>6.800000</value>
<votes>1501</votes>
</rating>
<rating name="tomatometerallaudience" max="10">
<value>6.400000</value>
<votes>37119</votes>
</rating>
<rating name="tomatometerallcritics" max="10">
<value>7.100000</value>
<votes>388</votes>
</rating>
<rating name="tomatometeravgaudience" max="10">
<value>7.000000</value>
<votes>37119</votes>
</rating>
<rating name="tomatometeravgcritics" max="10">
<value>6.400000</value>
<votes>388</votes>
</rating>
</ratings>
My label code is as follows;
Code:
<label>$INFO[ListItem.Ratings(tomatometeravgcritics),,%]</label>
Which shows my a rating of '6.4%' when it should be '64%'.
UMS can't scrape these ratings without the decimal in the wrong place as a part of Kodi Core and Kodi itself doesn't seem to have a method to correct for this. Can SHS convert these numbers, multiple them by 10, Harry Potter Wizard magic them to look nice?
Thanks for all info!