2021-10-11, 07:03
(2021-10-10, 19:17)roidy Wrote: When using:-
plugin://plugin.video.themoviedb.helper/?startdate=3&days=1&info=library_nextaired&widget=true
Does this return any kind of property to tell you which day of the week it actually is? There doesn't seem to be any documentation for this plugin call.
----------------------------------------------------------------------------
Sorry, just answered my own question.
ListItemAbsolute(0).Property(x) - air_day, air_day_short, air_date and air_date_short return what I need
Sorry, yeah I really need to document the airing calendar functions properly.
Calendar ListItem.Infolabels for air date and time
- Property(air_date) = Formatted air date using "Long date format" setting in Kodi Settings > Interface > Region >
- Property(air_time) = Formatted air time using "Time format" setting in Kodi Settings > Interface > Region >
- Property(air_day) = Formatted air day using "%A" e.g. "Monday" "Tuesday" etc.
- Property(air_day_short) = Formatted air day using "%a" e.g. "Mon" "Tues" etc.
- Property(air_date_short) = Formatted air date using "%d %b" e.g. "25-Oct" "05-Sep" etc.
- Year = Formatted air date using "%Y" e.g. "2021"
- Premiered = Formatted air date using "Short date format" setting in Kodi Settings > Interface > Region >
Additionally, you can get the name of the container/list with Container.PluginCategory. I also copy this property to ListItem.Property(widget) to use for widgets since Kodi doesn't allow for specifying Container(ID) for PluginCategory (Container.PluginCategory only works in MyVideoNav views so everywhere else you need to use ListItem.Property(widget) instead).
Property(widget) tells you the day name of the list based on the days/startdate settings. For example, see below:
ListItem.Property(widget) Outputs:
- "Yesterday" (days=1,startdate=-1)
- "Today" (days=1,startdate=0)
- "Tomorrow" (days=1,startdate=1)
- "Monday" "Tuesday" etc. (days=1,startdate=[<-1 | >1])
- "This Week" (days=7,startdate=0)
- "Last Week" (days=7,startdate=-7)
- "This Fortnight" (days=14,startdate=0)
- "Last Fortnight" (days=14,startdate=-14)
- "This Month" (days=30,startdate=0)
- "Last Month" (days=30,startdate=-30)