Media Companion

Discussion and development board for the program Media Companion.
 
HomeHome  FAQFAQ  SearchSearch  RegisterRegister  Log inLog in  

Share | 
 

 v3.244 Table View Runtime

View previous topic View next topic Go down 
AuthorMessage
twojenkins
Junior Member
Junior Member
avatar

Posts : 29
Join date : 2009-11-21

PostSubject: v3.244 Table View Runtime   Wed Mar 24, 2010 7:22 am

Here's a weird one...

In the main browser view for movies, the runtime is displayed as XX mins, but in the table view the runtime is displayed as XXs min.

Main Browser:


Table:
Back to top Go down
View user profile
paybac
Media Companion Supporter
Media Companion Supporter
avatar

Posts : 155
Join date : 2009-08-31
Location : New Zealand

PostSubject: Re: v3.244 Table View Runtime   Wed Mar 24, 2010 8:12 am

weird,

Mine just shows "min" on both views

Edit: Also mine shows all movies less then 100min as 099min,086min etc in table view. Bt shows just 99mins,86min etc in main browser.
Back to top Go down
View user profile
billyad2000
Admin
avatar

Posts : 1326
Join date : 2008-09-20

PostSubject: Re: v3.244 Table View Runtime   Wed Mar 24, 2010 12:36 pm

The reason for the extra digit is to allow sorting correctly,
When sorting in windows you can get some strange results, eg
1
10
2
20
4
The above is technically correct, but is not numerically correct, The work around is to add the extra digits so that they sort properly, eg
01
02
04
10
20 etc.

In the main browser view for movies, the runtime is displayed as XX mins, but in the table view the runtime is displayed as XXs min.
The reason for this is that the default naming convention for XBMC is not "mins", but "min"
When I calculate what leading zeros are needed I strip the " min" from the field, check for a numerical value, and add leading 0s until the number of digits = 3, then add the " min" back on.

I will change this method from the next build so that alternative naming conventions work correctly.

_________________
Do you have a problem with Media Companion, before posting a bug then please check you have the very latest version of Media Companion http://billyad2000.darkbb.com/announcements-f1/
Back to top Go down
View user profile http://billyad2000.co.uk
StormyKnight
VIP
VIP


Posts : 556
Join date : 2008-10-08
Location : Australia

PostSubject: Re: v3.244 Table View Runtime   Wed Mar 24, 2010 12:37 pm

Yes the three digit time I assume is to allow the correct sorting of that column.

I don't see the extra 's' in my table either.

Cheers


PS Billy technically should the movie length be just a number & not a number & text?

Thanks
Back to top Go down
View user profile
billyad2000
Admin
avatar

Posts : 1326
Join date : 2008-09-20

PostSubject: Re: v3.244 Table View Runtime   Wed Mar 24, 2010 1:02 pm

StormyKnight wrote:
PS Billy technically should the movie length be just a number & not a number & text?

TBH, maybe it should be, but XBMC will only display the contents of the field, and when browsing in XBMC,
'Runtime: 120 min'
looks better than
'Runtime: 120'

Even IMDB adds the 'min'

This could be achieved by the XBMC skin when viewing the movie details, but it isn't. I don't really see it as a huge issue.

_________________
Do you have a problem with Media Companion, before posting a bug then please check you have the very latest version of Media Companion http://billyad2000.darkbb.com/announcements-f1/
Back to top Go down
View user profile http://billyad2000.co.uk
twojenkins
Junior Member
Junior Member
avatar

Posts : 29
Join date : 2009-11-21

PostSubject: Re: v3.244 Table View Runtime   Wed Mar 24, 2010 7:32 pm

Thanks for the follow up, that makes sense.
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: v3.244 Table View Runtime   

Back to top Go down
 
v3.244 Table View Runtime
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Security Alert with yes, no, view certificate button
» Urgent --- how to get links under specific panel/ div/ table
» table -div
» How to get total rowcount of a table using Selenium IDE
» How to select link present under the table using c#

Permissions in this forum:You cannot reply to topics in this forum
Media Companion :: Media Companion :: Bug Discussion-
Jump to: