2021-11-13, 03:11
(2021-11-12, 20:23)roidy Wrote:(2021-11-12, 05:43)jurialmunkey Wrote:(2021-11-06, 12:30)roidy Wrote: Is there a way to get a formatted version of ListItem.Premiered?I think it's formatted automatically by Kodi according to short date settings (if youre talking about listitems).
Ideally like 21 Nov 2021 instead of 2021-11-21
Thanks
If youre talking about equivalent window properties - it's because Kodi will only accept the date in that format (and then formats it according to settings later) so it gets passed to the service like that.
I might be able to add a skin string setting to specify a formatting string - but itd only be possible for window props not the listitem itself.
Yep sorry, I'm talking about Window(Home).Property(TMDbHelper.ListItem.Premiered). It would be nice to get a short version like in the Next aired calendar which has ListItem.Property(air_date) and ListItem.Property(air_date_short)
Can you try latest version from github (4.4.21)
https://github.com/jurialmunkey/plugin.v...edb.helper
Window(Home).Property(TMDbHelper.ListItem.Premiered) will now properly follow Kodi system short date format settings
Window(Home).Property(TMDbHelper.ListItem.Premiered_Long) will give long date format
OR set a custom strftime format string (see https://strftime.org/ for options - %d %b %Y will give 21 Nov 2021 format)
Skin.SetString(TMDbHelper.Date.Format,%d %b %Y)
Window(Home).Property(TMDbHelper.ListItem.Premiered_Custom)
Wiki: https://github.com/jurialmunkey/plugin.v...or#general
Commit: https://github.com/jurialmunkey/plugin.v...f6eede23a6