Duration - now seconds instead of minutes - why?
#1
I haven't seen this myself simply because the nightlies are disabled but someone has just brought this to my attention -

furii Wrote:not sure if this has been discussed yet or not but there's been a change to the duration handling in the database: http://trac.xbmc.org/changeset/33384

resulting in this:
Image

Which looks awful even if I remove the 'MINS' at the end - who wants/needs to know about the seconds?

Thanks.
Reply
#2
Because people like to change things without thinking how they effect everyone else is my guess Smile. And yes confluence also suffers from this as does PM3.HD


Image
Image
Reply
#3
I don't know about you but surely 'minutes' or 'hours/minutes' would be more preferable?
Reply
#4
I actually think that pretty much everywhere you look (online movie sites, cinema webpages) they pretty much all have what we used too minutes only And I totally agree that seconds is completely unneeded.
Reply
#5
we are storing in seconds, since it's damn handy for short clips... we should ofc make it easier on you guys, in particular, the info label should be changed back and a new one introduced.
Reply
#6
So we don't have to worry about making any changes ready for Dharma?
Reply
#7
need to discuss with jonathan.
Reply
#8
OK, thanks.
Reply
#9
Will look at this over the weekend - it'll be fixed up for Dharma b2.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#10
What if the duration was stored as hours, minutes and seconds the same as system time?

ie ListItem.Duration(hh:mmConfuseds)

That way the skinner can use it however he pleases.

I'd use it something like this for the video info screen -

PHP Code:
<control type="label">
    <
label>$INFO[ListItem.Duration(hh),]</label>
    <
visible>!StringCompare(ListItem.Duration(hh),00)</visible>
</
control>

<
control type="label">
    <
label>$INFO[ListItem.Duration(mm),]</label>
    <
visible>!StringCompare(ListItem.Duration(hh),00) + !StringCompare(ListItem.Duration(mm),00)</visible>
</
control>

<
control type="label">
    <
label>$INFO[ListItem.Duration(ss),]</label>
    <
visible>!StringCompare(ListItem.Duration(hh),00)</visible>
</
control

That would cover movies, episodes and clips -

2h 23m (seconds wouldn't be shown)
45m 33s (hours wouldn't be shown)
55s (hours and minutes wouldn't be shown)
Reply
#11
r33533 reverts listitem.duration back to reporting in minutes.

Unfortunately it's non-trivial to switch it to using the time layout stuff, but we can look at doing something like that after Dharma.

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
Duration - now seconds instead of minutes - why?0