Changes with Kodi 18 for ListItem.Duration ?
#1
There is changes in Kodi 18 for duration ?

With $INFO[ListItem.Duration,, min]

Before -> 41 min

Now -> 40:39 min
 Estuary MOD V2 
Reply
#2
yup, duration has been changed from a value in minutes to a hh:mm:ss string format.

it's currently being discussed if we could/should provide some additional formatting options for skinners.
so it may change again in the (near) future.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
I doesn't like this format :/
More choice would be good.
 Estuary MOD V2 
Reply
#4
-1 for replacing the "old" duration label.
This new format requires more space in the width and could cause some problems with existing variables and conditions in existing skins.

+1 for adding additional formatting oprtions.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#5
I'd like to keep ListItem.Duration as it is but add ListItem.Runtime(hh:mm:ss) formatting options.
Reply
#6
Please note that listitem.duration for all other content except video file content (live tv, pvr recordings, music, ...) ever since had the hh:mmConfuseds format. Now things are at least consistent. ;-)

What I want to say is, whatever comes out of this discussion, make it consistent across all type of content.
Reply
#7
(2016-12-21, 17:38)Hitcher Wrote: I'd like to keep ListItem.Duration as it is but add ListItem.Runtime(hh:mmConfuseds) formatting options.


Keeping it would mean to keep inconsistency for different content types. See my other post for details, please.
Reply
#8
It's up to you guys. I don't care about the default output format, but we need the formatting options Smile The duration of videos are usually displayed only in minutes (even in cinemas, bluray cases, etc).

+1 for something like this
ListItem.Duration -> HH:MM
ListItem.Duration(minutes) --> minutes

edit:
This also would be great
ListItem.Duration(long) --> 1 hour 23 minutes
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#9
And I give it a +1 please don't change back
Aussie, Aussie, Aussie, Oi, Oi, Oi

Don't forget the Thank User button if i have helped!
|
V
Reply
#10
A big fat +1 for formatting options. That would save me a lot of code.

Like sualfred writes, the new format will take up more space and break some layouts.
Reply
#11
(2016-12-21, 17:38)Hitcher Wrote: I'd like to keep ListItem.Duration as it is but add ListItem.Runtime(hh:mmConfuseds) formatting options.

+100
Have two different way is the best option: I mean the "default" one and the customizable one.

For example, for a movie long 92 minutes, I like a customization with this format: 1h32
Kodi 18: Nvidia Shield TV (main device) and LibreELEC on Raspberry Pi 2 and Odroid C2
TV: Panasonic TX-55EZ950E (OLED)
AVR: Onkyo TX-NR509 (HDMI ARC)
Reply
#12
I recently have to deal with the %s.duration labels again.

Whats' working in Krypton:

- Player.Duration -> hh : mm : ss
- Player.Duration(format) -> h, hh, mm, ss
- ListItem.Duration -> mmm
- VideoPlayer.Duration -> hh : mm : ss
- MusicPlayer.Duration -> hh : mm : ss

My suggestion for the changes:
- Player.Duration -> hh : mm : ss
- Player.Duration(format) -> h, hh, m, mm, mmm, s, ss
- ListItem.Duration -> hh : mm : ss
- ListItem.Duration(format) -> h, hh, m, mm, mmm, s, ss
- VideoPlayer.Duration -> not required
- MusicPlayer.Duration - not required
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#13
(2017-01-04, 17:25)sualfred Wrote: My suggestion for the changes:
- Player.Duration -> hh : mm : ss
- Player.Duration(format) -> h, hh, m, mm, mmm, s, ss
- ListItem.Duration -> hh : mm : ss
- ListItem.Duration(format) -> h, hh, m, mm, mmm, s, ss
- VideoPlayer.Duration -> not required
- MusicPlayer.Duration - not required

+1 to this!
Reply
#14
Just as a heads up, we want to have listitem.duration customisable in the same way as player.duration etc and with the possibility to display it in minutes again. Unfortunately it is not as easy as it sounds and requires some refactoring in our infomanager code. It will take some time, but in the end it should provide more options as before.
Reply
#15
Sorry for going offtopic, but is kodi 18 the last version?
Reply

Logout Mark Read Team Forum Stats Members Help
Changes with Kodi 18 for ListItem.Duration ?1
This forum uses Lukasz Tkacz MyBB addons.