Display Runtime
#1
I am currently using the Media Info 2 view in monsieurpaulu's edit of Confluence and would like to know which part of which xml I need to edit so that I could get the runtime displayed somehow. My thought were to take out the imdb user rankings and replace it with the runtime (duration).

When we are choosing a movie for our son to watch it would be nice to be able to quickly see all the runtimes to know whcih one's fit in before bedtime.
Reply
#2
I was just coming on here to post the exact same request. :-) Needless to say, any help is appreciated!
Reply
#3
japes Wrote:I am currently using the Media Info 2 view in monsieurpaulu's edit of Confluence and would like to know which part of which xml I need to edit so that I could get the runtime displayed somehow. My thought were to take out the imdb user rankings and replace it with the runtime (duration).

When we are choosing a movie for our son to watch it would be nice to be able to quickly see all the runtimes to know whcih one's fit in before bedtime.

when you go to misc options you can select sort by runtime
then it will show runtime behind the movie name

it that what you want ?
Reply
#4
monsieurpaulu Wrote:when you go to misc options you can select sort by runtime
then it will show runtime behind the movie name

it that what you want ?

Yes and No. I like everything sorted by title but as in the Media Info 2 layout I would rather see the runtime (displayed like when it is sorted by runtime) as opposed to the imdb ranking score.

added note...
I have a profile set up as public that I use for everyday use which has been set to Kiosk mode so the little one can't accidentally change anything so switching sort views is not an option and I wanted to get this info in my default view.\\

Hope that clarifies something.
Reply
#5
In

..\XBMC\addons\skin.confluence\720p\ViewsVideoLibrary.xml change:

"Label2" into " , $LOCALIZE[12391]" (spaces included) on lines 806 & 865.

So line 806 should look like:
Quote:<label>$INFO[ListItem.Duration, , $LOCALIZE[12391]]</label>

and line 865 should look like:
Quote:<label>$INFO[ListItem.Duration, , $LOCALIZE[12391]]</label>

It should now display "XX minutes" instead of the imdb rating.
Reply
#6
Thanks a ton kassemans...The lines # were different for me but it was pretty easy to figure out with your info what to change for each view.

Thanks again
Reply
#7
thanks from me as well!
Reply
#8
And another thanks, came here looking just for this!
Reply
#9
This was almost exactly what I was looking for, thank you.

How do I get it to display the time in hours instead of just total minutes?

e.g. 1:47:23 instead of 107

The regular list view shows the runtimes this way when sorted by time, but I can't figure out how to duplicate it.

I'd actually prefer to change the string value for the times so that every info window that displays runtime does it this way.
Reply
#10
This is good info.. I, however, would like to keep the IMDB rating info, and display the runtime somewhere else (like with the media info on the left hand side).

Any pointers on what to add to additionally display the runtime?
Reply
#11
After messing around for a bit and completely braking everything in the layout I opted for the simplest solution of including the runtime in front of the IMDB rating be replacing the two above mentioned lines with:

Quote:<label>$INFO[ListItem.Duration, ,min | ]$INFO[ListItem.Label2]</label>
Reply
#12
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 Smile. 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.
Reply
#13
Im not sure if this is what you wanted, but this is the kind of modification i did to the 'media view 2' to satisfy my needs:
Image

this is the canges i did to the ViewsVideoLibrary.xml:

firstly i edited the textbox containing the plot:
(just search for <description>Description Value for Movie</description> under <include name="MediaListView3">)

Code:
<control type="textbox">
    <description>Description Value for Movie</description>
    <posx>320</posx>
    <posy>80</posy>
    <width>290</width>
    <height>230</height>
    <font>font12</font>
    <align>justify</align>
    <textcolor>white</textcolor>
    <label>$INFO[ListItem.Plot]</label>
    <autoscroll time="2000" delay="3000" repeat="5000">Skin.HasSetting(AutoScroll)</autoscroll>
</control>


then i added the following code underneath:

Code:
<control type="Label">
    <posx>430</posx>
    <posy>320</posy>
    <width>140</width>
    <height>25</height>
    <label>$LOCALIZE[515]:</label>
    <align>right</align>
    <aligny>center</aligny>
    <font>font13_title</font>
    <textcolor>blue</textcolor>
</control>
<control type="label">
    <posx>440</posx>
    <posy>320</posy>
    <width>170</width>
    <height>25</height>
    <label>$INFO[listitem.Genre]</label>
    <align>left</align>
    <aligny>center</aligny>
    <font>font13</font>
    <scroll>true</scroll>
</control>
<control type="Label">
    <posx>430</posx>
    <posy>350</posy>
    <width>140</width>
    <height>25</height>
    <label>$LOCALIZE[2050]:</label>
    <align>right</align>
    <aligny>center</aligny>
    <font>font13_title</font>
    <textcolor>blue</textcolor>
</control>
<control type="label">
    <posx>440</posx>
    <posy>350</posy>
    <width>170</width>
    <height>25</height>
    <label>$INFO[listitem.Duration,, $LOCALIZE[12391]]</label>
    <align>left</align>
    <aligny>center</aligny>
    <font>font13</font>
    <scroll>true</scroll>
</control>
<control type="Label">
    <posx>430</posx>
    <posy>380</posy>
    <width>140</width>
    <height>25</height>
    <label>$LOCALIZE[562]:</label>
    <align>right</align>
    <aligny>center</aligny>
    <font>font13_title</font>
    <textcolor>blue</textcolor>
</control>
<control type="label">
    <posx>440</posx>
    <posy>380</posy>
    <width>170</width>
    <height>25</height>
    <label>$INFO[listitem.Year]</label>
    <align>left</align>
    <aligny>center</aligny>
    <font>font13</font>
    <scroll>true</scroll>
</control>
<control type="Label">
    <posx>430</posx>
    <posy>410</posy>
    <width>140</width>
    <height>25</height>
    <label>$LOCALIZE[20339]:</label>
    <align>right</align>
    <aligny>center</aligny>
    <font>font13_title</font>
    <textcolor>blue</textcolor>
</control>
<control type="label">
    <posx>440</posx>
    <posy>410</posy>
    <width>170</width>
    <height>25</height>
    <label>$INFO[listitem.Director]</label>
    <align>left</align>
    <aligny>center</aligny>
    <font>font13</font>
    <scroll>true</scroll>
</control>
Reply
#14
rbiez Wrote:Im not sure if this is what you wanted, but this is the kind of modification i did to the 'media view 2' to satisfy my needs:
Image

Yeah that would work as well, overall I think people just wanted to get the runtime displayed somehow in "Media Info" or "Media Info 2" views.

I just realized I forgot to put a colon after "Runtime" Smile.
Reply
#15
Sorry to drag this thread back from the dead but I finally got this to partially work. Yes I replaced the imdb score but, for some of my films it says things like 136 miMins and on others 112 mins. Had a look at the nfo files and could see no difference between them. Hmmm, stumped on this.

But my real question is can I change it so that I have the time in numbers only and no 'min' at all. So it would look like:

Film Blah 90
Film Blah 105

Like that. Clearly it is something to do with $LOCALIZE[12391] but is there anything that I can change to get it to look like this?

Cheers for any help.
Reply

Logout Mark Read Team Forum Stats Members Help
Display Runtime0