Rotten Tomatoes Rating from db - Slurm - 2020-12-05
I want to add the Rotten Tomatoes Rating from the movies db to this skin.
If I use
xml:
<control type="label">
<textcolor>main_fg_70</textcolor>
<top>2</top>
<width>auto</width>
<height>28</height>
<align>right</align>
<font>font_tiny</font>
<label>$INFO[ListItem.Rating(rottenTomatoes)]</label>
</control>
the rating is shown.
But as soon as I use <visible>...</visible>
xml:
<control type="label">
<textcolor>main_fg_70</textcolor>
<top>2</top>
<width>auto</width>
<height>28</height>
<align>right</align>
<font>font_tiny</font>
<label>$INFO[ListItem.Rating(rottenTomatoes)]</label>
<visible>!String.IsEmpty(ListItem.Rating(rottenTomatoes))</visible>
</control>
nothing is shown.
Can anybody help me with this?
RE: Rotten Tomatoes Rating from db - Slurm - 2020-12-14
Just in case anyone else needs a guide for this: Kodi accepts only rating_types in lowercase. So simply changing rottenTomatoes to rottentomatoes in the database and in the xml file solves the problem.
RE: Rotten Tomatoes Rating from db - estuary_enthusiast - 2021-03-19
Hi, can you tell me what file is to edit? And can it also include metascore?
I scrape all the rating: imdb, tmdb, rotten and meta from TMM.
RE: Rotten Tomatoes Rating from db - Slurm - 2021-03-19
(2021-03-19, 04:13)estuary_enthusiast Wrote: Hi, can you tell me what file is to edit? And can it also include metascore?
I scrape all the rating: imdb, tmdb, rotten and meta from TMM.
Sure, it's Includes_Object.xml.
TMM has changed the way it saves Rotten Tomatoes Rating, it's now stored as tomatometerallcritics in nfo-file.
For having rating as percent I use the following on top of the file (I found it in another skin):
xml:
<variable name="RottenTomatoesLabelVar">
<value condition="String.StartsWith(ListItem.Rating(tomatometerallcritics),10.) | String.StartsWith(ListItem.Rating(tomatometerallcritics),10.)">10</value>
<value condition="String.StartsWith(ListItem.Rating(tomatometerallcritics),9.) | String.StartsWith(ListItem.Rating(tomatometerallcritics),9.)">9</value>
<value condition="String.StartsWith(ListItem.Rating(tomatometerallcritics),8.) | String.StartsWith(ListItem.Rating(tomatometerallcritics),8.)">8</value>
<value condition="String.StartsWith(ListItem.Rating(tomatometerallcritics),7.) | String.StartsWith(ListItem.Rating(tomatometerallcritics),7.)">7</value>
<value condition="String.StartsWith(ListItem.Rating(tomatometerallcritics),6.) | String.StartsWith(ListItem.Rating(tomatometerallcritics),6.)">6</value>
<value condition="String.StartsWith(ListItem.Rating(tomatometerallcritics),5.) | String.StartsWith(ListItem.Rating(tomatometerallcritics),5.)">5</value>
<value condition="String.StartsWith(ListItem.Rating(tomatometerallcritics),4.) | String.StartsWith(ListItem.Rating(tomatometerallcritics),4.)">4</value>
<value condition="String.StartsWith(ListItem.Rating(tomatometerallcritics),3.) | String.StartsWith(ListItem.Rating(tomatometerallcritics),3.)">3</value>
<value condition="String.StartsWith(ListItem.Rating(tomatometerallcritics),2.) | String.StartsWith(ListItem.Rating(tomatometerallcritics),2.)">2</value>
<value condition="String.StartsWith(ListItem.Rating(tomatometerallcritics),1.) | String.StartsWith(ListItem.Rating(tomatometerallcritics),1.)">1</value>
</variable>
<variable name="RottenTomatoesLabel2Var">
<value condition="String.EndsWith(ListItem.Rating(tomatometerallcritics),.0) | String.EndsWith(ListItem.Rating(tomatometerallcritics),.0)">0%</value>
<value condition="String.EndsWith(ListItem.Rating(tomatometerallcritics),.9) | String.EndsWith(ListItem.Rating(tomatometerallcritics),.9)">9%</value>
<value condition="String.EndsWith(ListItem.Rating(tomatometerallcritics),.8) | String.EndsWith(ListItem.Rating(tomatometerallcritics),.8)">8%</value>
<value condition="String.EndsWith(ListItem.Rating(tomatometerallcritics),.7) | String.EndsWith(ListItem.Rating(tomatometerallcritics),.7)">7%</value>
<value condition="String.EndsWith(ListItem.Rating(tomatometerallcritics),.6) | String.EndsWith(ListItem.Rating(tomatometerallcritics),.6)">6%</value>
<value condition="String.EndsWith(ListItem.Rating(tomatometerallcritics),.5) | String.EndsWith(ListItem.Rating(tomatometerallcritics),.5)">5%</value>
<value condition="String.EndsWith(ListItem.Rating(tomatometerallcritics),.4) | String.EndsWith(ListItem.Rating(tomatometerallcritics),.4)">4%</value>
<value condition="String.EndsWith(ListItem.Rating(tomatometerallcritics),.3) | String.EndsWith(ListItem.Rating(tomatometerallcritics),.3)">3%</value>
<value condition="String.EndsWith(ListItem.Rating(tomatometerallcritics),.2) | String.EndsWith(ListItem.Rating(tomatometerallcritics),.2)">2%</value>
<value condition="String.EndsWith(ListItem.Rating(tomatometerallcritics),.1) | String.EndsWith(ListItem.Rating(tomatometerallcritics),.1)">1%</value>
</variable>
<variable name="MetascoreLabelVar">
<value condition="String.StartsWith(ListItem.Rating(metacritic),10.) | String.StartsWith(ListItem.Rating(metacritic),10.)">10</value>
<value condition="String.StartsWith(ListItem.Rating(metacritic),9.) | String.StartsWith(ListItem.Rating(metacritic),9.)">9</value>
<value condition="String.StartsWith(ListItem.Rating(metacritic),8.) | String.StartsWith(ListItem.Rating(metacritic),8.)">8</value>
<value condition="String.StartsWith(ListItem.Rating(metacritic),7.) | String.StartsWith(ListItem.Rating(metacritic),7.)">7</value>
<value condition="String.StartsWith(ListItem.Rating(metacritic),6.) | String.StartsWith(ListItem.Rating(metacritic),6.)">6</value>
<value condition="String.StartsWith(ListItem.Rating(metacritic),5.) | String.StartsWith(ListItem.Rating(metacritic),5.)">5</value>
<value condition="String.StartsWith(ListItem.Rating(metacritic),4.) | String.StartsWith(ListItem.Rating(metacritic),4.)">4</value>
<value condition="String.StartsWith(ListItem.Rating(metacritic),3.) | String.StartsWith(ListItem.Rating(metacritic),3.)">3</value>
<value condition="String.StartsWith(ListItem.Rating(metacritic),2.) | String.StartsWith(ListItem.Rating(metacritic),2.)">2</value>
<value condition="String.StartsWith(ListItem.Rating(metacritic),1.) | String.StartsWith(ListItem.Rating(metacritic),1.)">1</value>
</variable>
<variable name="MetascoreLabel2Var">
<value condition="String.EndsWith(ListItem.Rating(metacritic),.0) | String.EndsWith(ListItem.Rating(metacritic),.0)">0%</value>
<value condition="String.EndsWith(ListItem.Rating(metacritic),.9) | String.EndsWith(ListItem.Rating(metacritic),.9)">9%</value>
<value condition="String.EndsWith(ListItem.Rating(metacritic),.8) | String.EndsWith(ListItem.Rating(metacritic),.8)">8%</value>
<value condition="String.EndsWith(ListItem.Rating(metacritic),.7) | String.EndsWith(ListItem.Rating(metacritic),.7)">7%</value>
<value condition="String.EndsWith(ListItem.Rating(metacritic),.6) | String.EndsWith(ListItem.Rating(metacritic),.6)">6%</value>
<value condition="String.EndsWith(ListItem.Rating(metacritic),.5) | String.EndsWith(ListItem.Rating(metacritic),.5)">5%</value>
<value condition="String.EndsWith(ListItem.Rating(metacritic),.4) | String.EndsWith(ListItem.Rating(metacritic),.4)">4%</value>
<value condition="String.EndsWith(ListItem.Rating(metacritic),.3) | String.EndsWith(ListItem.Rating(metacritic),.3)">3%</value>
<value condition="String.EndsWith(ListItem.Rating(metacritic),.2) | String.EndsWith(ListItem.Rating(metacritic),.2)">2%</value>
<value condition="String.EndsWith(ListItem.Rating(metacritic),.1) | String.EndsWith(ListItem.Rating(metacritic),.1)">1%</value>
</variable>
and then to display the rating something like this:
xml:
<control type="label">
<textcolor>main_fg_70</textcolor>
<top>2</top>
<width>auto</width>
<height>28</height>
<align>right</align>
<font>font_tiny</font>
<label>$VAR[RottenTomatoesLabelVar]$VAR[RottenTomatoesLabel2Var]</label>
<visible>!String.IsEmpty(ListItem.Rating(tomatometerallcritics))</visible>
</control>
RE: Rotten Tomatoes Rating from db - estuary_enthusiast - 2021-03-19
Where exactly do you put them? Can yo upload your Includes_Object.xml?
RE: Rotten Tomatoes Rating from db - Slurm - 2021-03-19
I'm using pkscout.mod.
https://pastebin.com/AiMLHJSB
RE: Rotten Tomatoes Rating from db - estuary_enthusiast - 2021-03-19
(2021-03-19, 16:20)Slurm Wrote: I'm using pkscout.mod.
https://pastebin.com/AiMLHJSB
Oh thats it, I'm using horizon
RE: Rotten Tomatoes Rating from db - sus67 - 2023-05-01
(2021-03-19, 16:20)Slurm Wrote: I'm using pkscout.mod.
https://pastebin.com/AiMLHJSB @Slurm
removed on Pastebin. Can you provide again, please.
Thanks
RE: Rotten Tomatoes Rating from db - Slurm - 2023-05-02
(2023-05-01, 06:12)sus67 Wrote: (2021-03-19, 16:20)Slurm Wrote: I'm using pkscout.mod.
https://pastebin.com/AiMLHJSB @Slurm
removed on Pastebin. Can you provide again, please.
Thanks
Sure, here it is: https://pastebin.com/Mi6cDNgj
RE: Rotten Tomatoes Rating from db - sus67 - 2023-05-03
@Slum
can you also provide your modified file Includes_Object.xml via Pastebin, please.
Thx again
RE: Rotten Tomatoes Rating from db - Slurm - 2023-05-12
(2023-05-03, 07:41)sus67 Wrote: @Slum
can you also provide your modified file Includes_Object.xml via Pastebin, please.
Thx again
Here it is: https://pastebin.com/raw/5BW3iD55
|