I'm not any kind of expert, today is the first time I ever did any kind of skin editing or advanced edits in XBMC. No warranties
. It worked for me and I figure the other people in this old thread might be interested. It's explained below and since I cannot attach here, I just pasted the entire file into pastebin:
http://pastebin.com/rrjaR245
I wanted to add runtime to Media Info as well, so my search brought me to this thread. I started messing around with the ViewsVideoLibrary.xml, asked for some help on the IRC channel, and eventually found an easy and not too ugly way to add it. There's space under the blue "Genre" label and so the runtime is pretty easy to add there.
Not required, but I think most would agree the best way to do this kinda thing is to actually make a new copy skin and just change the name. Under XBMC/addons/ is a directory called skin.confluence , which is where all the XML files and such for the skin are stored. Make a copy of this entire folder and rename it, for example you can call it skin.myconfluence, which ends up being at XBMC/addons/skin.myconfluence . In that directory is a file addon.xml which you'll need to edit to make your new skin appear, it's easy. Just change the id and name, like the example below:
Code:
<addon
id="skin.myconfluence"
version="1.1.0"
name="MyConfluence"
Load XBMC and make sure you can pick your new copied skin, make sure it works.
Now, edit this XML file under your new skin, XBMC/addons/skin.myconfluence/720p/ViewsVideoLibrary.xml , and find a spot under the MediaListView2 section, between the Genre and the separator graphic, it *should* be at line 1895. Note that this is for movies, and this spot is for movies, there are similar looking blocks for TV that I haven't modified:
Code:
<include name="MediaListView2">
....
....
<description>Year Value</description>
.....
...........
<control type="label">
<description>Genre Value</description>
<posx>160</posx>
<posy>195</posy>
<width>440</width>
<height>25</height>
<label fallback="416">$INFO[listitem.Genre]</label>
<align>left</align>
<aligny>center</aligny>
<font>font13</font>
<scroll>true</scroll>
</control>
**************************************
***This is where you paste in the new XML ***
**************************************
<control type="image">
<posx>0</posx>
<posy>232</posy>
<width>550</width>
<height>4</height>
<texture>separator.png</texture>
</control>
So, just add the code as seen below between the <!-- BEGIN and <!-- END comments:
Code:
<include name="MediaListView2">
....
....
<description>Year Value</description>
.....
...........
<control type="label">
<description>Genre Value</description>
<posx>160</posx>
<posy>195</posy>
<width>440</width>
<height>25</height>
<label fallback="416">$INFO[listitem.Genre]</label>
<align>left</align>
<aligny>center</aligny>
<font>font13</font>
<scroll>true</scroll>
</control>
<!-- BEGIN runtime addition -->
<control type="label">
<description>Runtime txt</description>
<posx>150</posx>
<posy>265</posy>
<width>140</width>
<height>10</height>
<label>$LOCALIZE[2050]</label>
<align>right</align>
<aligny>center</aligny>
<font>font10_title</font>
<textcolor>blue</textcolor>
</control>
<control type="label">
<description>Runtime Value</description>
<posx>160</posx>
<posy>265</posy>
<width>440</width>
<height>10</height>
<label fallback="416">$INFO[ListItem.Duration,, $LOCALIZE[12391]]</label>
<align>left</align>
<aligny>center</aligny>
<font>font10</font>
<scroll>true</scroll>
</control>
<!-- END runtime addition -->
<control type="image">
<posx>0</posx>
<posy>232</posy>
<width>550</width>
<height>4</height>
<texture>separator.png</texture>
</control>
If you look at it, basically all I did was copy the Genre parts and adjust the Y position to use up the small space below. I also picked a slightly smaller font, and I copied the localization code from the PosterWrapView so it should work for other languages.