Posts: 214
Joined: Dec 2013
Reputation:
0
litfoo
Senior Member
Posts: 214
Hi all,
I was looking for some advice please:
I currently add videos to my 'Movies' library using 'The MovieDB' scraper
My duration of movie in nfo is displayed as '1hr 35m' - however in XBMC it is displayed as 95mins - any idea why this happening? can i change it so that duration is displayed in 'hrs mins' format on mediainfo pages
Many thanks in advance,
litfoo
Intel NUC DC3217IYE, 8GB Corsair RAM, Crucial 120GB mSATA, Windows 8.1 - XBMC Jarvis 16.1 - Aeon MQ 7, JVC HD-550 Projector, Beamax M Series 10015 Screen, Synology DS1812+, Qnap TS-410, Logitech Harmony Ultimate, Flirc+ USB dongle
Posts: 2,771
Joined: Mar 2011
Reputation:
95
Maybe a skin-specific way of interpreting and displaying the value?
The NFO value simply seeds the database when you scan it... I think XBMC will then determine for itself how long something really is. You could test this by importing dubious information (e.g. 10 minutes) and then re-exporting.
Posts: 2,771
Joined: Mar 2011
Reputation:
95
Import - if an NFO exists when you scrape or refresh something, it will be used in preference to getting new information from the internet.
Export - you can export your entire library to individual files - probably overkill to test this - but that creates NFOs that include the current database entries for each item in your library, including CODEC, watched status, certificate, duration, etc. - basically, everything XBMC knows about a file.
Posts: 214
Joined: Dec 2013
Reputation:
0
litfoo
Senior Member
Posts: 214
Apparently it is in the software coding itself
Intel NUC DC3217IYE, 8GB Corsair RAM, Crucial 120GB mSATA, Windows 8.1 - XBMC Jarvis 16.1 - Aeon MQ 7, JVC HD-550 Projector, Beamax M Series 10015 Screen, Synology DS1812+, Qnap TS-410, Logitech Harmony Ultimate, Flirc+ USB dongle
Posts: 2,064
Joined: Jan 2009
Reputation:
34
prae5
Team-XBMC Forum Moderator
Posts: 2,064
I might be mistaken, but i think we only store the duration in minutes and thats whats presented to the skin.
Posts: 2,771
Joined: Mar 2011
Reputation:
95
I dug into the skin code for Aeon and Confluence... there doesn't appear to be any manipulation of values, the skins simply display them as per your selected localisation. Given that the skins are XML, I'm not even sure whether it would be possible to do the sort of calculation that would be needed to convert a time value unless there's something that can be added to that localisation code, as is presumably the case for the C/F conversion for temperature.
Posts: 214
Joined: Dec 2013
Reputation:
0
litfoo
Senior Member
Posts: 214
Thanks for the info and digging into the code Prof Yaffle
Intel NUC DC3217IYE, 8GB Corsair RAM, Crucial 120GB mSATA, Windows 8.1 - XBMC Jarvis 16.1 - Aeon MQ 7, JVC HD-550 Projector, Beamax M Series 10015 Screen, Synology DS1812+, Qnap TS-410, Logitech Harmony Ultimate, Flirc+ USB dongle
Posts: 5,174
Joined: Jan 2010
Reputation:
97
Kib
Team-Kodi Member
Posts: 5,174
It is possible the skin can present it as hours and minutes but it would need a manual edit.
I am just not sure it the listitem supports parsing it to (hh:mm) but I will check when I am home.
Posts: 214
Joined: Dec 2013
Reputation:
0
litfoo
Senior Member
Posts: 214
Thanks again Kib for looking into it further
Intel NUC DC3217IYE, 8GB Corsair RAM, Crucial 120GB mSATA, Windows 8.1 - XBMC Jarvis 16.1 - Aeon MQ 7, JVC HD-550 Projector, Beamax M Series 10015 Screen, Synology DS1812+, Qnap TS-410, Logitech Harmony Ultimate, Flirc+ USB dongle