Just a note that I've slimmed this down to two changes as follows, both in `ViewsFileMode.xml`.
Code:
--- /usr/share/kodi/addons/skin.confluence/720p/ViewsFileMode.xml.orig 2016-05-04 04:32:21.000000000 +1000
+++ /usr/share/kodi/addons/skin.confluence/720p/ViewsFileMode.xml 2016-05-12 10:06:01.646118839 +1000
@@ -59,7 +59,7 @@
<selectedcolor>selected</selectedcolor>
<align>right</align>
<aligny>center</aligny>
- <label>$INFO[ListItem.Label2]</label>
+ <label>$INFO[ListItem.Duration]</label>
<visible>Window.IsVisible(Videos)</visible>
<animation effect="slide" start="0,0" end="40,0" delay="0" time="0" condition="![Container.Content(Movies) | Container.Content(Episodes) | Container.Content(MusicVideos)]">conditional</animation>
</control>
@@ -152,7 +152,7 @@
<selectedcolor>selected</selectedcolor>
<align>right</align>
<aligny>center</aligny>
- <label>$INFO[ListItem.Label2]</label>
+ <label>$INFO[ListItem.Duration]</label>
<visible>Window.IsVisible(Videos)</visible>
<animation effect="slide" start="0,0" end="40,0" delay="0" time="0" condition="![Container.Content(Movies) | Container.Content(Episodes) | Container.Content(MusicVideos)]">conditional</animation>
</control>
The first part changes the "static" rating to duration. The second part changes the information when you select or hover over the item.
However, there is a problem with this. Normally, when you browse TV series in the top index, the number of episodes is shown on the right. If you filter by unwatched, this shows the number of unwatched episodes. After you apply my patch, it removes this information.
I don't totally understand what my patch does, but I think Label2 works as a variable placeholder, which depends on what you are looking at. In the top index, it will hold the number of episodes. In the "within-a-series" index, it will hold the rating. I think I've hard-coded it to show the duration in all cases. With this in mind, I thought I could find `ListItem.Rating` instead, and replace it with `ListItem.Duration`. However I could only find this string in `DialogAlbumInfo.xml`, which is not a relevant file.
FWIW I've read
this information, which also suggests this might be a problem. However, I find it hard to believe that it's not possible to change ratings without changing the number of episodes. Can anyone help me?
==EDIT==
I just realised that my patch only changes "List" view. So another workaround is to have the top index on "Big list", "Media info" or "Media info2", and the "within-a-series" index on "List". I'd actually prefer the latter on "Media info", so it's still not ideal, but it is better…