Changes with Kodi 18 for ListItem.Duration ?
#31
Finally. Thanks ksooo!
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
#32
(2018-03-15, 18:18)ksooo Wrote:
(2017-01-04, 17:51)BigNoid Wrote: 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.
 https://github.com/xbmc/xbmc/pull/13651 :-)

Excellent news! Big Grin
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply
#33
Thanks!! :-D

Edit: Tested with great results.

Only thing missing seems to be something like ListItem.Duration(h) (Getting hours without starting with a "0").
Since ListItem.Duration(hours) only returns a rounded hours-result, which also is useful for other purposes, of course.
(Maybe ListItem.Duration(m) would also be useful for some, since i saw skin devs using the format "1h7m" before.)

Or did i miss something?
⬅️⬅️ Feel free to leave a 👍 on useful posts  |  A Confluence ZEITGEIST (A modern reimagination of Confluence)  |  axbmcuser REPO (Download Link)  |  Kodi 17.7 DSPlayer x64 BETTERGUI (2020 build)
Reply
#34
(2018-03-17, 12:38)axbmcuser Wrote: Thanks!! :-D

Edit: Tested with great results.

Only thing missing seems to be something like ListItem.Duration(h) (Getting hours without starting with a "0").
Since ListItem.Duration(hours) only returns a rounded hours-result, which also is useful for other purposes, of course.
(Maybe ListItem.Duration(m) would also be useful for some, since i saw skin devs using the format "1h7m" before.)

Or did i miss something?


"h" should work.
"m" is currently not implemented.
Reply
#35
@ksooo 

Ah - thanks!
ListItem.Duration(h) works, looks like i only tested ListItem.Duration(h:mm), which does not work - intentional - i guess. I'll use h and combine it with mm.

If there is a chance to implement ListItem.Duration(m) at some time - skin devs would most likely be very happy for "decades" to come. But still, what we have now already is absolutely great. :-)
⬅️⬅️ Feel free to leave a 👍 on useful posts  |  A Confluence ZEITGEIST (A modern reimagination of Confluence)  |  axbmcuser REPO (Download Link)  |  Kodi 17.7 DSPlayer x64 BETTERGUI (2020 build)
Reply
#36
(2018-03-17, 17:00)axbmcuser Wrote: @ksooo 

Ah - thanks!
ListItem.Duration(h) works, looks like i only tested ListItem.Duration(h:mm), which does not work - intentional - i guess.

If there is a chance to implement ListItem.Duration(m) at some time - skin devs would most likely be very happy for "decades" to come. But still, what we have now already is absolutely great. :-)


I put that on my to-do list.

EDIT: I mean both "m" and "h:mm"...
Reply
#37
(2018-03-17, 17:01)ksooo Wrote:
(2018-03-17, 17:00)axbmcuser Wrote: @ksooo 

Ah - thanks!
ListItem.Duration(h) works, looks like i only tested ListItem.Duration(h:mm), which does not work - intentional - i guess.

If there is a chance to implement ListItem.Duration(m) at some time - skin devs would most likely be very happy for "decades" to come. But still, what we have now already is absolutely great. :-)


I put that on my to-do list.

EDIT: I mean both "m" and "h:mm"... 
 +1

ListItem.Duration(m) pleeease Wink
Reply
#38
https://github.com/xbmc/xbmc/pull/13767 adds support for "m".

"h:mm" easily can be done by skinners itself, no extra core support needed.
Reply
#39
(2018-03-17, 17:01)ksooo Wrote:
(2018-03-17, 17:00)axbmcuser Wrote: @ksooo 

Ah - thanks!
ListItem.Duration(h) works, looks like i only tested ListItem.Duration(h:mm), which does not work - intentional - i guess.

If there is a chance to implement ListItem.Duration(m) at some time - skin devs would most likely be very happy for "decades" to come. But still, what we have now already is absolutely great. :-)


I put that on my to-do list.

EDIT: I mean both "m" and "h:mm"...  
Im confused.

for full min lenght i use 

xml:
$INFO[ListItem.Duration(mins,, min] 
working great.

and for ** h ** min
xml:

$INFO[ListItem.Duration(hh,, h] $INFO[ListItem.Duration(mm,, min]

booth work since middle march.
what i am missing in that question?

i came here , because  read that pr,
https://github.com/xbmc/xbmc/pull/13767
i i thought it was working and why now another code to implement.

https://i.imgur.com/3VtCSZ1_d.jpg?

https://i.imgur.com/sQZZpTk_d.jpg?maxwid...ity=medium
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#40
(2018-04-17, 20:17)mardukL Wrote:
(2018-03-17, 17:01)ksooo Wrote:
(2018-03-17, 17:00)axbmcuser Wrote: @ksooo 

Ah - thanks!
ListItem.Duration(h) works, looks like i only tested ListItem.Duration(h:mm), which does not work - intentional - i guess.

If there is a chance to implement ListItem.Duration(m) at some time - skin devs would most likely be very happy for "decades" to come. But still, what we have now already is absolutely great. :-)


I put that on my to-do list.

EDIT: I mean both "m" and "h:mm"...  
Im confused.

for full min lenght i use 

xml:
$INFO[ListItem.Duration(mins,, min] 
working great.

and for ** h ** min
xml:

$INFO[ListItem.Duration(hh,, h] $INFO[ListItem.Duration(mm,, min]

booth work since middle march.
what i am missing in that question?

i came here , because  read that pr,
https://github.com/xbmc/xbmc/pull/13767
i i thought it was working and why now another code to implement.

https://i.imgur.com/3VtCSZ1_d.jpg?

https://i.imgur.com/sQZZpTk_d.jpg?maxwid...ity=medium


You did not understand the change. Read my comment on github, please.
Reply
#41
@ksooo thanks
Reply

Logout Mark Read Team Forum Stats Members Help
Changes with Kodi 18 for ListItem.Duration ?1