v18 Rating Labels & Scrapper
#1
1st Question
Hi , can someone telll me if its intended that Rating Labels just work Correct in VideoInfos Screen but not in View Types ?

I get correct results with List.Item.Rating(**) and RatingAndVotes(**) in videoinfo window but not in the viewtype windows, theres always a fall back to default ratings.
(Skinhelper Works in booth)

2nd Question
I got correct Scraped Media Files, but some Random Items ( MOSTLY TV SHOWS) dont Show IMDb Ratings in Viewtypes and get a fallback to default.
The Correct and dependig to the RatingSource Values just showing up in VideoInfo.

Sorry if im wrong here, but i dont which is the right thread for that.
Its not the scrapper, cause i get Results in Video Info and Labels working correct.

If someone want to test, heres the label test i created to use
xml:
<label>$INFO[ListItem.Rating] = ListItemRating   /   $INFO[ListItem.RatingAndVotes] = ListItemRatingAndVotes[CR]$INFO[ListItem.Rating(imdb),,]$INFO[ListItem.Votes(imdb), (, $LOCALIZE[205]] = ListItem.Rating(imdb) + ListItem.Votes(imdb)[CR]$INFO[ListItem.RatingAndVotes(imdb)] = ListItemRatingAndVotes(imdb)[CR][CR]$INFO[ListItem.Rating(tvdb)]$INFO[ListItem.Votes(tvdb), (, $LOCALIZE[205]] = ListItem.Rating(tvdb)[CR]$INFO[ListItem.Rating[(imdb)],, TEST][CR]$INFO[ListItem.Rating(themoviedb)] = ListItem.Rating(themoviedb)[CR]$INFO[ListItem.Rating(themoviedb)]$INFO[ListItem.Votes(themoviedb), (, $LOCALIZE[205])] = ListItem.Rating(themoviedb)[CR][CR]$INFO[ListItem.Rating(tmdb)] = ListItem.Rating(tmdb)[CR]$INFO[ListItem.Rating(tmdb)]$INFO[ListItem.Votes(tmdb), (, $LOCALIZE[205])] = ListItem.Rating(tmdb)[CR][CR][COLOR =red]$INFO[ListItem.Rating(typo gets fallback)] = ListItem.Rating(typo gets fallback)[CR]$INFO[ListItem.Rating(typo gets fallback)]$INFO[ListItem.Votes(typo gets fallback), (, $LOCALIZE[205])] = ListItem.RatingAndVotes(typo gets fallback)[CR][CR]$INFO[ListItem.Rating(default)]$INFO[ListItem.Votes(default), (, $LOCALIZE[205])]  = ListItem.Rating(default)[/COLOR] [CR][CR] [COLOR =pink]    - S K I N H E L P E R -[CR]$INFO[Window(home).Property(SkinHelper.ListItem.Rating.TMDB), ,]$INFO[Window(home).Property(SkinHelper.ListItem.Votes.TMDB), (, $LOCALIZE[205])] = SkinHelper.ListItem.Rating.TMDB + Property(SkinHelper.ListItem.Votes.TMDB[CR][CR]$INFO[Window(home).Property(SkinHelper.ListItem.Rating.TVDB), ,]$INFO[Window(home).Property(SkinHelper.ListItem.Votes.TVDB), (, $LOCALIZE[205])] = SkinHelper.ListItem.Rating.TVDB + SkinHelper.ListItem.Votes.TVDB)[CR][CR]$INFO[Window(home).Property(SkinHelper.ListItem.Rating.IMDB), ,]$INFO[Window(home).Property(SkinHelper.ListItem.Votes.IMDB), (, $LOCALIZE[205])] = SkinHelper.ListItem.Rating.IMDB+SkinHelper.ListItem.Votes.IMDB)[/COLOR]</label>
                   

Tested with TitanMod and EstuaryMod

Scrapped but random missing IMDb Rating in ViewTypes but Correct Values (in ViedoInfo)

ImageImage
ImageImage
ImageImage
ImageImage
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#2
Yes, ListItem.Rating(foo) only works in DialogVideoInfo.xml

Outside of the info dialog, only the default "ListItem.Rating" and "ListItem.RatingAndVotes" will work.

Skin Helper ratings will work everywhere (assuming that it can find a rating from the online APIs).
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply
#3
Thanks for the Infos.

Did you notice any lack of imdb ratings for TV shows when in View Lists ?
I got random Series wich dont show accurate IMDb Ratings (skinhelper falls back to default, in my case TVDB) wich result tvdb and imdb always the same ratings.
I asume he fails to get imbd id, but unsure.Refresh the TV shows dont change anything.

Any Ideas?
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#4
Sorry for digging that out. I need to make that possible, that all ListItem.Ratings are working outside DialogVideoInfo, expecially Includes_Media.xml.
How can I do that? It must be possible to get the variables transferred to any place. Meaning without the <label>$INFO[Window(Home).Property(SkinHelper.ListItem.MetaCritic.Rating), ,%   ]</label>
I am on v19 though
Reply
#5
(2020-12-01, 22:03)_novalis Wrote: Sorry for digging that out. I need to make that possible, that all ListItem.Ratings are working outside DialogVideoInfo, expecially Includes_Media.xml.
How can I do that? It must be possible to get the variables transferred to any place. Meaning without the <label>$INFO[Window(Home).Property(SkinHelper.ListItem.MetaCritic.Rating), ,%   ]</label>
I am on v19 though


Below is how i do it atm, without skinhelper.service.

BUT
i use EMBUARY HELPER script, but it assumed you have the ratings scraped into your db (umiversal movie scrapper is able to do)


use it as hidden container, so that the helper is able to fetch

e.g. myvideonav.xml

xml:

<control type="list" id="2000">
<left>-3000</left>
<top>-3000</top>
<width>1</width>
<height>1</height>
<itemlayout height="10" width="10" />
<focusedlayout height="10" width="10" />
<visible>*foo*</visible>
<content limit="1">$VAR[EmbuaryHelper_GetInfo_dbid]</content>
</control>

variable example to diff the content/prevent lookups/calls
xml:

<variable name="EmbuaryHelper_GetInfo_dbid">
<value condition="ListItem.IsParentFolder + String.IsEqual(ListItemAbsolute(1).DBType,movie) + Integer.IsGreater(ListItemAbsolute(1).DBID,0)">plugin://script.embuary.helper/?info=getbydbid&amp;dbid=$INFO[ListItemAbsolute(1).DBID]&amp;type=movie&amp;reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)]</value>
<value condition="ListItem.IsParentFolder + String.IsEqual(ListItemAbsolute(1).DBType,tvshow) + Integer.IsGreater(ListItemAbsolute(1).DBID,0)">plugin://script.embuary.helper/?info=getbydbid&amp;dbid=$INFO[ListItemAbsolute(1).DBID]&amp;type=tvshow&amp;reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)]</value>
<value condition="ListItem.IsParentFolder + String.IsEqual(ListItemAbsolute(1).DBType,season) + Integer.IsGreater(ListItemAbsolute(1).DBID,0)">plugin://script.embuary.helper/?info=getbydbid&amp;dbid=$INFO[ListItemAbsolute(1).DBID]&amp;type=tvshow&amp;idtype=season&amp;reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)]</value>
<value condition="ListItem.IsParentFolder + String.IsEqual(ListItemAbsolute(1).DBType,season) + Integer.IsGreater(ListItemAbsolute(1).DBID,0)">plugin://script.embuary.helper/?info=getbydbid&amp;dbid=$INFO[ListItemAbsolute(1).DBID]&amp;type=tvshow&amp;idtype=season&amp;reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)]</value>
<value condition="!Container.HasParent + String.IsEqual(ListItem.Label,$LOCALIZE[20366]) + String.IsEqual(ListItemAbsolute(1).DBType,season) + Integer.IsGreater(ListItemAbsolute(1).DBID,0)">plugin://script.embuary.helper/?info=getbydbid&amp;dbid=$INFO[ListItemAbsolute(1).DBID]&amp;type=tvshow&amp;idtype=season&amp;reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)]</value>
<value condition="Container.HasParent + String.IsEqual(ListItem.Label,$LOCALIZE[20366]) + String.IsEqual(ListItemAbsolute(2).DBType,season) + Integer.IsGreater(ListItemAbsolute(2).DBID,0)">plugin://script.embuary.helper/?info=getbydbid&amp;dbid=$INFO[ListItemAbsolute(2).DBID]&amp;type=tvshow&amp;idtype=season&amp;reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)]</value>
<value condition="ListItem.IsParentFolder + String.IsEqual(ListItemAbsolute(1).DBType,episode) + Integer.IsGreater(ListItemAbsolute(1).DBID,0)">plugin://script.embuary.helper/?info=getbydbid&amp;dbid=$INFO[ListItem.DBID]&amp;type=tvshow&amp;idtype=episode&amp;reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)]</value>
<value condition="String.IsEqual(ListItem.DBType,movie) + Integer.IsGreater(ListItem.DBID,0)">plugin://script.embuary.helper/?info=getbydbid&amp;dbid=$INFO[ListItem.DBID]&amp;type=movie&amp;reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)]</value>
<value condition="String.IsEqual(ListItem.DBType,tvshow) + Integer.IsGreater(ListItem.DBID,0)">plugin://script.embuary.helper/?info=getbydbid&amp;dbid=$INFO[ListItem.DBID]&amp;type=tvshow&amp;reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)]</value>
<value condition="String.IsEqual(ListItem.DBType,season) + Integer.IsGreater(ListItem.DBID,0)">plugin://script.embuary.helper/?info=getbydbid&amp;dbid=$INFO[ListItem.DBID]&amp;type=tvshow&amp;idtype=season&amp;reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)]</value>
<value condition="String.IsEqual(ListItem.DBType,episode) + Integer.IsGreater(ListItem.DBID,0)">plugin://script.embuary.helper/?info=getbydbid&amp;dbid=$INFO[ListItem.DBID]&amp;type=tvshow&amp;idtype=episode&amp;reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)]</value>
<value>-</value>
</variable>


than, may optional i prefer

xml:

<include name="Rating_Footer">
<definition>
<control type="grouplist">
<visible>Window.IsActive(videos) + Skin.HasSetting(Show_$PARAM[rating]_Rating) + !String.IsEmpty(Control.GetLabel($PARAM[id]))</visible>
<top>15</top>
<bottom>5</bottom>
<width>80</width>
<height>70</height>
<orientation>vertical</orientation>
<nested />
<control type="image">
<width>60</width>
<height>40</height>
<bordersize>2</bordersize>
<aspectratio align="center" aligny="bottom">keep</aspectratio>
<texture>$VAR[image_$PARAM[rating]]</texture>
<visible>!Skin.HasSetting(use_monochrome_ratingflags)</visible>
</control>
<control type="image">
<width>60</width>
<height>40</height>
<bordersize>2</bordersize>
<aspectratio align="center" aligny="bottom">keep</aspectratio>
<texture colordiffuse="$PARAM[color]">$VAR[image_$PARAM[rating]]</texture>
<visible>Skin.HasSetting(use_monochrome_ratingflags)</visible>
</control>
<control type="label" id="$PARAM[id]">
<height>25</height>
<width>60</width>
<align>center</align>
<font>font20_title</font>
<textcolor>$PARAM[color]</textcolor>
<label>$VAR[label_listitemrating_$PARAM[rating]]</label>
</control>
</control>
</definition>
</include>



<include content="Rating_Footer">
<param name="id" value="50505"/>
<param name="rating" value="metacritic"/>
<param name="color" value="$PARAM[forcedcolor]" />
</include>
<include content="Rating_Footer">
<param name="id" value="50503"/>
<param name="rating" value="tomatometerallaudience"/>
<param name="color" value="$PARAM[forcedcolor]" />
</include>
<include content="Rating_Footer">
<param name="id" value="50504"/>
<param name="rating" value="tomatometerallcritics"/>
<param name="color" value="$PARAM[forcedcolor]" />
</include>
<include content="Rating_Footer">
<param name="id" value="50501"/>
<param name="rating" value="themoviedb"/>
<param name="color" value="$PARAM[forcedcolor]" />
</include>
<include content="Rating_Footer">
<param name="id" value="50500"/>
<param name="rating" value="tvdb"/>
<param name="color" value="$PARAM[forcedcolor]" />
<visible>[[Container.Content(tvshows) | String.IsEqual(ListItem.DBTYPE,tvshow)] | [Container.Content(episodes) | String.IsEqual(ListItem.DBTYPE,episode)] | [Container.Content(seasons) | String.IsEqual(ListItem.DBTYPE,season)]]</visible>
</include>
<include content="Rating_Footer">
<param name="id" value="50502"/>
<param name="rating" value="imdb"/>
<param name="color" value="$PARAM[forcedcolor]" />
</include>
<include content="Rating_Footer">
<param name="id" value="50506"/>
<param name="rating" value="imdbtop250"/>
<param name="color" value="$PARAM[forcedcolor]" />
</include>


optional image vars
<variable name="image_imdb">
<value condition="Skin.HasSetting(use_monochrome_ratingflags)">flags/ratings/imdb_monochrome.png</value>
<value>flags/ratings/imdb_color.png</value>
</variable>
<variable name="image_imdbtop250">
<value condition="Skin.HasSetting(use_monochrome_ratingflags)">flags/ratings/imdbtop250_monochrome.png</value>
<value>flags/ratings/imdbtop250_color.png</value>
</variable>
<variable name="image_tvdb">
<value condition="Skin.HasSetting(use_monochrome_ratingflags)">flags/ratings/tvdb_monochrome.png</value>
<value>flags/ratings/tvdb_color.png</value>
</variable>
<variable name="image_themoviedb">
<value condition="Skin.HasSetting(use_monochrome_ratingflags)">flags/ratings/themoviedb_monochrome.png</value>
<value>flags/ratings/themoviedb_color.png</value>
</variable>
<variable name="image_tomatometerallaudience">
<value condition="[Integer.IsGreater(Container(2000).ListItem.Rating(tomatometerallaudience),5.9) | Integer.IsGreater(ListItem.Rating(tomatometerallaudience),5.9)] + Skin.HasSetting(use_monochrome_ratingflags)">flags/ratings/audience_fresh_monochrome.png</value>
<value condition="![Integer.IsGreater(Container(2000).ListItem.Rating(tomatometerallaudience),5.9) | Integer.IsGreater(ListItem.Rating(tomatometerallaudience),5.9)] + Skin.HasSetting(use_monochrome_ratingflags)">flags/ratings/audience_rotten_monochrome.png</value>
<value condition="[Integer.IsGreater(Container(2000).ListItem.Rating(tomatometerallaudience),5.9) | Integer.IsGreater(ListItem.Rating(tomatometerallaudience),5.9)] + !Skin.HasSetting(use_monochrome_ratingflags)">flags/ratings/audience_fresh_color.png</value>
<value condition="![Integer.IsGreater(Container(2000).ListItem.Rating(tomatometerallaudience),5.9) | Integer.IsGreater(ListItem.Rating(tomatometerallaudience),5.9)] + !Skin.HasSetting(use_monochrome_ratingflags)">flags/ratings/audience_rotten_color.png</value>
</variable>
<variable name="image_tomatometerallcritics">
<value condition="[Integer.IsGreater(Container(2000).ListItem.Rating(tomatometerallcritics),5.9) | Integer.IsGreater(ListItem.Rating(tomatometerallcritics),5.9)] + Skin.HasSetting(use_monochrome_ratingflags)">flags/ratings/critics_rotten_fresh_monochrome.png</value>
<value condition="![Integer.IsGreater(Container(2000).ListItem.Rating(tomatometerallcritics),5.9) | Integer.IsGreater(ListItem.Rating(tomatometerallcritics),5.9)] + Skin.HasSetting(use_monochrome_ratingflags)">flags/ratings/critics_rotten_rotten_monochrome.png</value>
<value condition="[Integer.IsGreater(Container(2000).ListItem.Rating(tomatometerallcritics),5.9) | Integer.IsGreater(ListItem.Rating(tomatometerallcritics),5.9)] + !Skin.HasSetting(use_monochrome_ratingflags)">flags/ratings/critics_fresh_color.png</value>
<value condition="![Integer.IsGreater(Container(2000).ListItem.Rating(tomatometerallcritics),5.9) | Integer.IsGreater(ListItem.Rating(tomatometerallcritics),5.9)] + !Skin.HasSetting(use_monochrome_ratingflags)">flags/ratings/critics_rotten_color.png</value>
</variable>
<variable name="image_metacritic">
<value condition="Skin.HasSetting(use_monochrome_ratingflags)">flags/ratings/metacritic_monochrome.png</value>
<value>flags/ratings/metacritic_color.png</value>
</variable>
<variable name="image_StudioLogo">
<value condition="!Skin.HasSetting(use_monochrome_studioflags)">$INFO[ListItem.Studio,resource://resource.images.studios.coloured/,.png]</value>
<value>$INFO[ListItem.Studio,resource://resource.images.studios.white/,.png]</value>
</variable>



<variable name="label_listitemrating_imdbtop250">
<value condition="!String.IsEmpty(ListItem.Top250)">$INFO[ListItem.Top250]</value>
<value condition="Skin.HasSetting(SH_Rating_Fallback) + String.IsEmpty(ListItem.Top250)">$INFO[Window(Home).Property(SkinHelper.ListItem.IMDB.Top250)]</value>
</variable>
<variable name="label_listitemrating_imdb">
<value condition="!String.IsEmpty(ListItem.Rating(imdb))">$INFO[ListItem.Rating(imdb)]</value>
<value condition="String.IsEmpty(ListItem.Rating(imdb)) + !String.IsEmpty(Container(2000).ListItem.Rating(imdb))">$INFO[Container(2000).ListItem.Rating(imdb)]</value>
<value condition="Skin.HasSetting(SH_Rating_Fallback) + String.IsEmpty(ListItem.Rating(imdb)) + String.IsEmpty(Container(2000).ListItem.Rating(imdb))">$INFO[Window(Home).Property(SkinHelper.ListItem.Rating.IMDB)]</value>
</variable>
<variable name="label_listitemrating_themoviedb">
<value condition="!String.IsEmpty(ListItem.Rating(themoviedb))">$INFO[ListItem.Rating(themoviedb)]</value>
<value condition="String.IsEmpty(ListItem.Rating(themoviedb)) + !String.IsEmpty(Container(2000).ListItem.Rating(themoviedb))">$INFO[Container(2000).ListItem.Rating(themoviedb)]</value>
<value condition="Skin.HasSetting(SH_Rating_Fallback) + String.IsEmpty(ListItem.Rating(themoviedb)) + String.IsEmpty(Container(2000).ListItem.Rating(themoviedb))">$INFO[Window(Home).Property(SkinHelper.ListItem.Rating.TMDB)]</value>
</variable>
<variable name="label_listitemrating_metacritic">
<value condition="!String.IsEmpty(ListItem.Rating(metacritic)) | [!String.IsEmpty(Container(2000).ListItem.Rating(metacritic)) + String.IsEmpty(ListItem.Rating(metacritic))]">$VAR[formatted_rating_metacritic,,%]</value>
<value condition="Skin.HasSetting(SH_Rating_Fallback) + String.IsEmpty(ListItem.Rating(metacritic)) + String.IsEmpty(Container(2000).ListItem.Rating(metacritic))">$INFO[Window(Home).Property(SkinHelper.ListItem.MetaCritic.Rating)]</value>
</variable>
<variable name="label_listitemrating_tomatometerallaudience">
<value condition="!String.IsEmpty(ListItem.Rating(tomatometerallaudience)) | [!String.IsEmpty(Container(2000).ListItem.Rating(tomatometerallaudience)) + String.IsEmpty(ListItem.Rating(tomatometerallaudience))]">$VAR[formatted_rating_tomatometerallaudience,,%]</value>
<value condition="Skin.HasSetting(SH_Rating_Fallback) + String.IsEmpty(ListItem.Rating(tomatometerallaudience)) + String.IsEmpty(Container(2000).ListItem.Rating(tomatometerallaudience))">$INFO[Window(Home).Property(SkinHelper.ListItem.RottenTomatoes.Meter),,%]</value>
</variable>
and so on....

Skins |  Titan M O D   •   S W A N (WIP)
Reply
#6
(2020-12-30, 11:45)mardukL Wrote: Below is how i do it atm, without skinhelper.service.

Very helpfull, thanks a lot.
Reply

Logout Mark Read Team Forum Stats Members Help
Rating Labels & Scrapper0