Media Companion
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Media Companion

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

 

 v3.244 Table View Runtime

Go down 
4 posters
AuthorMessage
twojenkins
Junior Member
Junior Member
twojenkins


Posts : 29
Join date : 2009-11-21

v3.244 Table View Runtime Empty
PostSubject: v3.244 Table View Runtime   v3.244 Table View Runtime Icon_minitimeWed 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:
v3.244 Table View Runtime Main10

Table:
v3.244 Table View Runtime Table10
Back to top Go down
paybac
Media Companion Supporter
Media Companion Supporter
paybac


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

v3.244 Table View Runtime Empty
PostSubject: Re: v3.244 Table View Runtime   v3.244 Table View Runtime Icon_minitimeWed 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
billyad2000
Admin
billyad2000


Posts : 1326
Join date : 2008-09-20

v3.244 Table View Runtime Empty
PostSubject: Re: v3.244 Table View Runtime   v3.244 Table View Runtime Icon_minitimeWed 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.
Back to top Go down
http://billyad2000.co.uk
StormyKnight
VIP
VIP



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

v3.244 Table View Runtime Empty
PostSubject: Re: v3.244 Table View Runtime   v3.244 Table View Runtime Icon_minitimeWed 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
billyad2000
Admin
billyad2000


Posts : 1326
Join date : 2008-09-20

v3.244 Table View Runtime Empty
PostSubject: Re: v3.244 Table View Runtime   v3.244 Table View Runtime Icon_minitimeWed 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.
Back to top Go down
http://billyad2000.co.uk
twojenkins
Junior Member
Junior Member
twojenkins


Posts : 29
Join date : 2009-11-21

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

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





v3.244 Table View Runtime Empty
PostSubject: Re: v3.244 Table View Runtime   v3.244 Table View Runtime Icon_minitime

Back to top Go down
 
v3.244 Table View Runtime
Back to top 
Page 1 of 1
 Similar topics
-
» 3.225 - Runtime sort and Runtime for Multiple File Movies
» 3.265 - Switch to Table view prompts to save changes
» Table View disscusion
» V3.237 Table View missing Outline & Year - FIXED!
» v3.296 Batch scraping with *runtime* checked is removing the runtime.

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