(2018-07-28, 04:37)Karellen Wrote: Hi @mikeSiLVO
Hoping you can point me in the right direction. I am trying to make a minor modification to the Right List view when a movie or tv show is in focus.
I would like to replace the Votes and Ends At with Last Played and Play Count. I have mocked up a sample below.
I have tried finding the code in MyVideoNav and View_506_RightList primarily, but I have hunted around quite a few other xml files but could not locate the specific code. Any hints??
No problem
I can and will edit this post if you prefer a copy/paste solution
Just let me know if you need any further assistance or would like a download link
For the Rightlist view I use a PARAM Include for both the focused and item layouts. The, what I refer to as a, "sublabel" for that view is in the Variables.xml file. It looks like you are using the Krypton version so that would start at line 685 if I am not mistaken. That VAR is named RightListSubLabelVar.
Depending on the options you have chosen you would need to alter the correct one or all of them if you wanted that to be the sublabel for all movies regardless of any user choices available.
I replaced that VAR for testing and the below image is what you should see if you do the same:
Code:
<variable name="RightListSubLabelVar">
<value condition="!ListItem.IsParentFolder + !Skin.HasSetting(Enable.HourMinuteDuration) + [Container.Content(movies) + !Skin.HasSetting(rightlistalternate)]">[COLOR white]$INFO[ListItem.LastPlayed,$LOCALIZE[568] , • ]$INFO[ListItem.Duration(mins),, $LOCALIZE[12391]]$INFO[ListItem.PlayCount, • Plays: ,][/COLOR]</value>
<value condition="!ListItem.IsParentFolder + Skin.HasSetting(Enable.HourMinuteDuration) + [Container.Content(movies) + !Skin.HasSetting(rightlistalternate)]">[COLOR white]$INFO[ListItem.LastPlayed,$LOCALIZE[568] , • ]$VAR[ItemDurationVar]$INFO[ListItem.PlayCount, • Plays: ,][/COLOR]</value>
<value condition="!ListItem.IsParentFolder + !Skin.HasSetting(Enable.HourMinuteDuration) + [Container.Content(movies) + Skin.HasSetting(rightlistalternate)]">[COLOR white]$INFO[ListItem.Year,, • ]$INFO[ListItem.LastPlayed,$LOCALIZE[568] , • ]$INFO[ListItem.Duration(mins),, $LOCALIZE[12391]]$INFO[ListItem.PlayCount, • Plays: ,][/COLOR]</value>
<value condition="!ListItem.IsParentFolder + Skin.HasSetting(Enable.HourMinuteDuration) + [Container.Content(movies) + Skin.HasSetting(rightlistalternate)]">[COLOR white]$INFO[ListItem.Year,, • ]$INFO[ListItem.LastPlayed,$LOCALIZE[568] , • ]$VAR[ItemDurationVar]$INFO[ListItem.PlayCount, • Plays: ,][/COLOR]</value>
<value condition="[Container.Content(tvshows) + !Skin.HasSetting(rightlistalternatetv)]">$INFO[ListItem.RatingAndVotes]</value>
<value condition="[Container.Content(tvshows) + Skin.HasSetting(rightlistalternatetv)]">$INFO[ListItem.Year]$INFO[ListItem.RatingAndVotes, • ,]</value>
<value condition="Container.Content(episodes)">$INFO[ListItem.RatingAndVotes,, • ]$INFO[ListItem.EndTimeResume,$LOCALIZE[31393]: ,]</value>
<value condition="Container.Content(albums)">$INFO[ListItem.Year,, / ]$INFO[ListItem.Artist]</value>
<value condition="Container.Content(songs)">$INFO[ListItem.Artist]$INFO[ListItem.Duration, / ,]</value>
</variable>
The above should cover all options for Rightlist so that all movies show Last Played instead of Votes and Playcount instead of Ends at. There is no Kodi translated string for "plays" so if you do not like that wording you can alter the "Plays:" with anything including parenthesis like the pic you provided.
In addition to the above please let me know if you want me to add a "Karellen" option (it does not need to be named that unless you want it to be
) in the sideblade for the Rightlist view so you can always have it available even when I update the skin in the future.