2024-01-09, 12:39
Hello,
Until now, to set the duration of the videos of my addons I used listitem.setInfo('video',{'duration':7500}) or vInfoTag.setDuration(7500) depending on the version of Kodi, but in both cases the duration was always an integer that represents the number of seconds.
Now I see that in some skins this duration is not indicated correctly, they read the hours as minutes (in this case 7500s shows it as 2 minutes).
I have also seen that since Kodi 18 ListItem.Duration(format) is supported, and that is what the skins are reading, but I don't know how to pass that data to them from my addon.
Can you help me?
Until now, to set the duration of the videos of my addons I used listitem.setInfo('video',{'duration':7500}) or vInfoTag.setDuration(7500) depending on the version of Kodi, but in both cases the duration was always an integer that represents the number of seconds.
Now I see that in some skins this duration is not indicated correctly, they read the hours as minutes (in this case 7500s shows it as 2 minutes).
I have also seen that since Kodi 18 ListItem.Duration(format) is supported, and that is what the skins are reading, but I don't know how to pass that data to them from my addon.
Can you help me?