trying to copy ratings from video info to fanart view
#1
i have been playing around with fanart view, since it is my favorite view, a little bit and there is just one more thing i'd like to change to make it perfect for me and i just cannot figure out how to do it.

as shown in the image below i am trying to bring the ratings from the video info page to the fanart page
it's about these ratings

https://ibb.co/jrynyxr

and i have partially succeeded. i copied the xml from the videoinfo to the fanart view and the endresult is this

https://ibb.co/P1V6S1d

now the problem is in the fanart view it only shows one rating, the main rating. as you can see in the image above the imdb top 250 is carried over but not the second or third rating from TMDB metacritic etc. now the funny thing is if i play the movie for a while until an "in progress overlay" shows up or edit the metadata with the metadata editor all of a sudden all of the ratings show up as you can see in the image below.

https://ibb.co/sCkCYRf

but as soon as i leave the movie directory or go "home" and then back there is again only one rating there....

this is the script i copied from the videoinfo xml

-----------------------------------------------------------------------------------------
 <!-- Ratings bar for local content -->        
        <control type="grouplist" description="Ratings">
            <top>83</top>
            <left>705</left>
            <width>1275</width>
            <height>40</height>
            <itemgap>8</itemgap>
            <orientation>horizontal</orientation>
            <align>left</align>
            <visible>String.IsEmpty(ListItem.Property(tmdb_id))</visible>
            <control type="grouplist" description="IMDb Rating or Main Rating">
                <width>320</width>
                <orientation>horizontal</orientation>
                <itemgap>5</itemgap>
                <visible>!String.IsEmpty(ListItem.Rating(imdb)) + Skin.HasSetting(ShowRatingIMDb)</visible>
                <control type="image" description="IMDb logo">
                    <height>40</height>
                    <width>83</width>
                    <aligny>center</aligny>
                    <align>center</align>
                    <aspectratio>keep</aspectratio>
                    <texture>badges/ratings/imdb2.png</texture>
                </control>
                <control type="label" description="IMDb Rating and Votes">
                    <width>auto</width>
                    <height>40</height>
                    <font>ListDetails</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <align>left</align>
                    <label>$INFO[ListItem.Rating(imdb)]$INFO[ListItem.Votes(imdb), (, $LOCALIZE[205])]</label>
                    <visible>!String.IsEmpty(ListItem.Rating(imdb)) + Skin.HasSetting(ShowRatingIMDb)</visible>
                </control>
            </control>
            <control type="grouplist" description="IMDb Top 250 rank">
                <width>100</width>
                <orientation>horizontal</orientation>
                <itemgap>3</itemgap>
        <visible>Skin.HasSetting(ShowRatingTop250)</visible>
                <control type="label" description="IMDb Top 250">
                    <width>auto</width>
                    <height>40</height>
                    <font>ListDetails</font>
                    <align>left</align>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <label>$INFO[ListItem.Top250,#]</label>
                </control>
            </control>
            <control type="grouplist" description="RT Critics rating">
                <visible>!String.IsEmpty(ListItem.Rating(tomatometerallcritics)) + Skin.HasSetting(ShowRatingRT)</visible>
                <width>130</width>
                <orientation>horizontal</orientation>
                <align>left</align>
                <itemgap>3</itemgap>            
                <control type="image">
                    <width>40</width>
                    <height>40</height>
                    <texture>$VAR[RottenFreshLogoVar]</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="label">
                    <height>40</height>
                    <width>60</width>
                    <font>ListDetails</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <label>$VAR[RottenFreshLabelVar]%</label>
                </control>
            </control>
            <control type="grouplist" description="RT Audience rating">
                <visible>!String.IsEmpty(ListItem.Rating(tomatometerallaudience)) + Skin.HasSetting(ShowRatingRT)</visible>
                <width>130</width>
                <orientation>horizontal</orientation>
                <align>left</align>
                <itemgap>3</itemgap>            
                <control type="image">
                    <width>40</width>
                    <height>40</height>
                    <texture>$VAR[RottenFreshAudienceLogoVar]</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="label">
                    <height>40</height>
                    <width>60</width>
                    <font>ListDetails</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <label>$VAR[RottenFreshAudienceLabelVar]%</label>
                </control>
            </control>
            <control type="grouplist" description="Metacritic rating">
                <visible>!String.IsEmpty(ListItem.Rating(metacritic)) + Skin.HasSetting(ShowRatingMC)</visible>
                <width>90</width>
                <orientation>horizontal</orientation>
                <align>left</align>
                <itemgap>5</itemgap>            
                <control type="image">
                    <width>40</width>
                    <height>40</height>
                    <texture>badges/ratings/metacritic2.png</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="label">
                    <height>40</height>
                    <width>50</width>
                    <font>ListDetails</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <label>$VAR[MetacriticLabelVar]</label>
                </control>
            </control>
            <control type="grouplist" description="TMDB rating">
                <visible>!String.IsEmpty(ListItem.Rating(themoviedb)) + Skin.HasSetting(ShowRatingTMDb)</visible>
                <width>115</width>
                <orientation>horizontal</orientation>
                <itemgap>5</itemgap>  
                <align>left</align>
                <control type="image" description="TMDB logo">
                    <height>40</height>
                    <width>45</width>
                    <texture>badges/ratings/themoviedb3.png</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="label" description="TMDB Rating">
                    <width>60</width>
                    <height>40</height>
                    <font>ListDetails</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <label>$VAR[TheMovieDBLabelVar]%</label>
                </control>
            </control>
            <control type="grouplist" description="TVDB rating and votes">
                <visible>!String.IsEmpty(ListItem.Rating(tvdb)) + Skin.HasSetting(ShowRatingTVDB)</visible>
                <width>300</width>
                <orientation>horizontal</orientation>
                <itemgap>5</itemgap>
                <align>left</align>                
                <control type="image" description="TVDB logo">
                    <height>40</height>
                    <width>71</width>
                    <aligny>center</aligny>
                    <texture>badges/ratings/tvdb2.png</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="label" description="TVDB Rating">
                    <width>auto</width>
                    <height>40</height>
                    <font>ListDetails</font>
                    <align>left</align>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <label>$INFO[ListItem.Rating(tvdb)]$INFO[ListItem.Votes(tvdb), (, $LOCALIZE[205])]</label>
                </control>
            </control>
            <control type="grouplist" description="Trakt rating">
                <visible>!String.IsEmpty(ListItem.Rating(trakt))</visible>
                <width>90</width>
                <orientation>horizontal</orientation>
                <itemgap>5</itemgap>
                <align>left</align>                
                <control type="image" description="Trakt logo">
                    <height>40</height>
                    <width>40</width>
                    <aligny>center</aligny>
                    <texture>badges/ratings/trakt.png</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="label" description="Trakt Rating">
                    <width>auto</width>
                    <height>40</height>
                    <font>ListDetails</font>
                    <align>left</align>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <label>$INFO[ListItem.Rating(trakt)]</label>
                </control>
            </control>
            <control type="grouplist" description="User rating">
                <visible>!String.IsEmpty(ListItem.UserRating) + Skin.HasSetting(ShowRatingUserVideoInfo)</visible>
                <width>80</width>
                <orientation>horizontal</orientation>
                <itemgap>0</itemgap>
                <align>left</align>                
                <control type="image" description="User Rating logo">
                    <height>40</height>
                    <width>40</width>
                    <texture>badges/ratings/userrating2.png</texture>
                </control>
                <control type="label" description="User Rating">
                    <width>40</width>
                    <height>40</height>
                    <font>ListDetails</font>
                    <align>left</align>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <label>$INFO[ListItem.UserRating]</label>
                </control>
            </control>
            <control type="grouplist" description="Awards">
                <width>115</width>
                <orientation>horizontal</orientation>
                <itemgap>1</itemgap>
                <align>left</align>
                <visible>[!String.IsEmpty(Window(Home).Property(TMDbHelper.ListItem.Oscar_Wins)) + !String.IsEqual(Window(Home).Property(TMDbHelper.ListItem.Oscar_Wins),N/A)] |
                         [!String.IsEmpty(Window(Home).Property(TMDbHelper.ListItem.GoldenGlobe_Wins)) + !String.IsEqual(Window(Home).Property(TMDbHelper.ListItem.GoldenGlobe_Wins),N/A)]</visible>
                <visible>Skin.HasSetting(ShowRatingAwards)</visible>
                <visible>!Skin.HasSetting(Disable.OnlineTMDbInfo)</visible>
                <control type="image" description="Oscars logo">
                    <height>40</height>
                    <width>30</width>
                    <aligny>center</aligny>
                    <align>right</align>
                    <aspectratio>keep</aspectratio>
                    <texture>badges/ratings/oscars.png</texture>
                    <visible>[!String.IsEmpty(Window(Home).Property(TMDbHelper.ListItem.Oscar_Wins)) + !String.IsEqual(Window(Home).Property(TMDbHelper.ListItem.Oscar_Wins),N/A)]</visible>
                </control>
                <control type="label" description="Oscar wins">
                    <width>30</width>
                    <height>40</height>
                    <font>ListDetails</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <align>left</align>
                    <aligny>center</aligny>
                    <label>$INFO[Window(Home).Property(TMDbHelper.ListItem.Oscar_Wins)]</label>
                    <visible>[!String.IsEmpty(Window(Home).Property(TMDbHelper.ListItem.Oscar_Wins)) + !String.IsEqual(Window(Home).Property(TMDbHelper.ListItem.Oscar_Wins),N/A)]</visible>
                </control>
                <control type="image" description="Golden Globes logo">
                    <height>40</height>
                    <width>30</width>
                    <aligny>center</aligny>
                    <align>right</align>
                    <aspectratio>keep</aspectratio>
                    <texture>badges/ratings/goldenglobes.png</texture>
                    <visible>[!String.IsEmpty(Window(Home).Property(TMDbHelper.ListItem.GoldenGlobe_Wins)) + !String.IsEqual(Window(Home).Property(TMDbHelper.ListItem.GoldenGlobe_Wins),N/A)]</visible>
                </control>
                <control type="label" description="Golden Globe wins">
                    <width>20</width>
                    <height>40</height>
                    <font>ListDetails</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <align>left</align>
                    <aligny>center</aligny>
                    <label>$INFO[Window(Home).Property(TMDbHelper.ListItem.GoldenGlobe_Wins)]</label>
                    <visible>[!String.IsEmpty(Window(Home).Property(TMDbHelper.ListItem.GoldenGlobe_Wins)) + !String.IsEqual(Window(Home).Property(TMDbHelper.ListItem.GoldenGlobe_Wins),N/A)]</visible>
                </control>
            </control>            
        </control>
--------------------------------------------------------------------
i know it says "IMDb Rating or Main Rating" in the description but that's only the description. changing it changes nothing

can anybody make sense of this who is more versed in xml than i am?
Linux Elementary, Kodi 19.4, Lastest Amber Skin
Android TV 11, Kodi 20.2, Latest Amber Skin
Reply

Logout Mark Read Team Forum Stats Members Help
trying to copy ratings from video info to fanart view0