View Full Version : [SIMPLE MOD] Duration instead of source type
Imaginos
2009-04-20, 23:59
Hello there
I used the MOD for IMDB rating by theo00 and decided to let the duration appear:
You can see what it looks like when time is in minutes :
http://img141.imageshack.us/img141/3010/screenshot001kfn.jpg (http://img141.imageshack.us/my.php?image=screenshot001kfn.jpg)
or if time is in hours and minutes :
http://img141.imageshack.us/img141/7803/screenshot000y.jpg (http://img141.imageshack.us/my.php?image=screenshot000y.jpg)
Simple changes :
in Includes_MediaFlags.xml
find
<control type="image" id="82">
<include>Furniture_ShowcaseMediaFlagsVars</include>
<texture>flags/hdtv.png</texture>
<visible>substring(listitem.studio,hdtv)</visible>
</control>
</control>
</control>
</include>
and insert :
<control type="image" id="82">
<include>Furniture_ShowcaseMediaFlagsVars</include>
<texture>flags/hdtv.png</texture>
<visible>substring(listitem.studio,hdtv)</visible>
</control>
<visible>false</visible>
</control>
</control>
</include>
Then in Viewtype_Showcase.xml
find :
<visible>Window.IsActive(502) + stringcompare(container(57).numitems,0)</visible>
</control>
<control type="label">
<label>$INFO[ListItem.Label]</label>
and insert :
<visible>Window.IsActive(502) + stringcompare(container(57).numitems,0)</visible>
</control>
<control type="label">
<description>Runtime</description>
<posx>240</posx>
<posy>669</posy>
<width>93</width>
<height>20</height>
<align>left</align>
<font>Font_FSInfoGenre</font>
<textcolor>b91a1a1c</textcolor>
<label>$INFO[ListItem.Duration]</label>
<visible>Container.Content(movies) + !Skin.HasSetting(nomediaflags) + !Window.IsActive(24)</visible>
</control>
<control type="label">
<label>$INFO[ListItem.Label]</label>
And that's it :)
BTW, thanks to theo00
Imaginos
2009-04-21, 02:14
De nada
masterosok
2009-04-22, 02:58
Could you do this but instead of swapping out the source type, swap out the studio?
Imaginos
2009-04-22, 03:04
I'll take a look tomorrow :)
Imaginos
2009-04-22, 10:58
Ok here it is :
http://img8.imageshack.us/img8/8158/screenshot002k.jpg (http://img8.imageshack.us/my.php?image=screenshot002k.jpg)
In Includes_MediaFlags.xml find the last id="81" from the Furniture_ShowcaseMediaFlags include section
<control type="image" id="81">
<include>Furniture_ShowcaseMediaFlagsVars</include>
<texture>flags/abandon.png</texture>
<visible>substring(listitem.studio,Abandon)</visible>
</control>
</control>
and insert
<control type="image" id="81">
<include>Furniture_ShowcaseMediaFlagsVars</include>
<texture>flags/abandon.png</texture>
<visible>substring(listitem.studio,Abandon)</visible>
</control>
<visible>false</visible>
</control>
the difference is the control concerned by the mod
Then in the Viewtype_Showcase.xml find :
<visible>Window.IsActive(502) + stringcompare(container(57).numitems,0)</visible>
</control>
<control type="label">
<label>$INFO[ListItem.Label]</label>
and insert :
<visible>Window.IsActive(502) + stringcompare(container(57).numitems,0)</visible>
</control>
<control type="label">
<description>Runtime</description>
<posx>100</posx>
<posy>669</posy>
<width>93</width>
<height>20</height>
<align>left</align>
<font>Font_FSInfoGenre</font>
<textcolor>b91a1a1c</textcolor>
<label>$INFO[ListItem.Duration]</label>
<visible>Container.Content(movies) + !Skin.HasSetting(nomediaflags) + !Window.IsActive(24)</visible>
</control>
<control type="label">
<label>$INFO[ListItem.Label]</label>
the difference here is only the posx value :)
Nice idea but it just looks out of place to me.
Imaginos
2009-04-22, 11:29
You mean the position should be slightly different ?
I think it's just because they're all images except for the time. Maybe it would better in brackets at the end of the title.
ie Hitchhiker Guide To The Galaxy (109 mins)
Like this -
http://img27.imageshack.us/img27/3583/screenshot000i.png
Just find and replace these -
<label>$INFO[ListItem.Label]</label>
<label>$INFO[ListItem.Label] ( $INFO[ListItem.Duration])</label>
Imaginos
2009-04-22, 13:10
It's a good idea as long as you have short titles, but sometimes, it's not the case.
specially in french where words are often longer and the translators have the bad habit to add useless words.
That's why I gave up with this idea.
Eventually, It may be interesting to have duration BELOW the title, but, I'm not sure wether there is enough space.
Anyway, as far as i'm concerned, I don't give a damn about the bluray/DVD Flag, after all, the resolution is enough for me and I know that a 1080p is no dvdrip :)
Moreover, a bluray rip is NOT a bluray, a dvdrip is NOT a DVD, so what's the point ?
It's my opinion of course :)
You mean the position should be slightly different ?
You should maybe make the font a little bigger. I personally have the source flag replaced with the imdb rating, the video info replaced with the year and sound info with video info. This gives it a nice symmetric look :)
Like this -
http://img27.imageshack.us/img27/3583/screenshot000i.png
Just find and replace these -
<label>$INFO
[ListItem.Label]</label><label>$INFO
[ListItem.Label] ( $INFO
[ListItem.Duration])</label>
Is that done in the mediaflags.xml or somewhere else completely?
looks good to me thanks
Imaginos
2009-04-22, 20:45
Paul, the Hitcher's suggestion concerns a change in the Viewtype_Showcase.xml file
ccMatrix
2009-04-22, 23:15
I haven't tried the mod but how does this look when the runtime on imdb is something like "USA:111 min (unrated version) | 98 min (theatrical version)" ?
Imaginos
2009-04-22, 23:41
I haven't tried the mod but how does this look when the runtime on imdb is something like "USA:111 min (unrated version) | 98 min (theatrical version)" ?
You will end with something like "USA:111 mi..."
I must admit that, when I use media info plus to fill the tags, I simply make a copy of the time estimated in the Movie Media Information window to the runtime field
After all I don't care to know if the movie has 1, 2 or more different durations/versions, the only thing I want to know is : How long MY version lasts :cool:
ccMatrix
2009-04-23, 00:05
You will end with something like "USA:111 mi..."
I must admit that, when I use media info plus to fill the tags, I simply make a copy of the time estimated in the Movie Media Information window to the runtime field
After all I don't care to know if the movie has 1, 2 or more different durations/versions, the only thing I want to know is : How long MY version lasts :cool:
That is what I was afraid of. I hope that XBMC will scan this additional information soon instead of getting it from the scraper.
masterosok
2009-04-23, 00:08
thanks!
Imaginos
2009-04-23, 10:15
That is what I was afraid of. I hope that XBMC will scan this additional information soon instead of getting it from the scraper.
You mean that xbmc should scan the file to know the real time ?
Don't bet on it :D
And there's no use to realize a parse from the scraped data, cause in case there are several times, who would it guess wich one is the good one !
I think there won't be any change around this, we still need to do some things by ourselves, but hey ! we're not worms ! we can do a little and not stay as little birds in the nest waiting to be feed !
Montellese
2009-04-23, 10:24
You mean that xbmc should scan the file to know the real time ?
Don't bet on it :D
Well MIP already has that tag which holds all the file information (like the ones stored in the <studio> tag atm as a work around) where you can also find the exact runtime of the file on your harddisc.
But I'm not sure about whether there will be support for that specific tag (I don't remember it's name, maybe <source>) in future XBMC releases.
Imaginos
2009-04-23, 14:58
Well MIP already has that tag which holds all the file information (like the ones stored in the <studio> tag atm as a work around) where you can also find the exact runtime of the file on your harddisc.
But I'm not sure about whether there will be support for that specific tag (I don't remember it's name, maybe <source>) in future XBMC releases.
Yes, that's what I said, when I spoke about copying the datas to the <runtime> field
Thanx for this!
//Talle
(Using the one in the sourcetype area)
For scrolling 'title' + 'runtime' find -
<label>$INFO[ListItem.Label]</label>
and replace with
<label>$INFO[ListItem.Label] ($INFO[ListItem.Duration])</label>
<scroll>true</scroll>
Only One Haze
2009-04-23, 20:20
okay, i have succesfully got the runtime to show up where the studio icon shows up, now i need help in moving that to where the source icon is displayed and moving the source to where the resolution is and getting rid of the resolution. i have set it up so that anything 480 shows the DVD source image and 720 and 1080 show the blu ray source image so i dont really need the resolution.
so it would look like this:
runtime studio source audio
thanks so much for your help guys this is coming along so nicely!
Only One Haze
2009-04-24, 03:23
i got it figured out, here is a link to pastebin of my includes_mediaflags.xml
http://pastebin.com/m7987b4ac
its working for showcase now just gotta go through and apply those changes to panel as well. also, i changed the posx of the runtime to 90 so that it lined up with the outside edge of the last thumb.
http://i26.photobucket.com/albums/c144/toografik4u/screenshot000-1.jpg
again it is setup so that anything with 480 or 576 in the studio tag displays the DVD icon and 720 and 1080 show the bluray icon, i think it came out fairly nice through trial and error.
now i just gotta make these changes in auriga and ill be all set!