Release plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners
(2023-12-18, 22:23)Hitcher Wrote: Looks like I'll have to use variables based on Next_Aired.Short and Next_Aired.Long.

For the service you can use the custom formatting string:
Code:

Skin.SetString(TMDbHelper.Date.Format,%d %B %Y)

Code:

$INFO[Container(99950).ListItem.Property(last_aired.custom)]
$INFO[Container(99950).ListItem.Property(next_aired.custom)]

That will give 0 padded version e.g. "09 September 2023"

Obviously a bit annoying since it doesn't use the user's long date settings but you could offer them the option to set it themselves and use a $VAR to fallback to standard long date if they haven't.

Note that the custom format defaults to "%d %b %Y" (which is "09 Sep 2023") if the setting string is empty -- so make sure to check against the setting string rather than the output property.

I thought I'd documented this in the wiki, but it looks like I haven't (or at least I can't remember where I put it).
EDIT: Okay, I did document it! I wasn't going mad! Just found it:
https://github.com/jurialmunkey/plugin.v...properties
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply


Messages In This Thread
RE: TheMovieDB Helper - by jurialmunkey - 2019-07-31, 11:47
RE: plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners - by jurialmunkey - 2023-12-18, 23:52
Logout Mark Read Team Forum Stats Members Help
plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners2