ListItem.Date confusion

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Hitcher Offline
Skilled Skinner
Posts: 10,748
Joined: Aug 2007
Reputation: 98
Location: Eastleigh, UK
Post: #1
There are 2 entries in the wiki for ListItem.Date and neither seem to return the correct info.

ListItem.Date
  • Shows the file date of the currently selected song or movie in a list or thumb control
  • Day, start time and end time of current selected TV programme in a list or thumb control

Actual results

Movies - empty
TV Shows - same date as ListItem.Premiered
Episodes - same date as ListItem.Premiered
Songs - empty
(This post was last modified: 2012-05-06 18:21 by Hitcher.)
find quote
Jezz_X Offline
Team-XBMC Skinner
Posts: 5,289
Joined: Jun 2006
Reputation: 57
Location: Earth
Post: #2
I'm not sure about shows but episodes would be the same because you probably get the episodes the same day they aired like I said in the other thread about it
find quote
Hitcher Offline
Skilled Skinner
Posts: 10,748
Joined: Aug 2007
Reputation: 98
Location: Eastleigh, UK
Post: #3
Unfortunately not.
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,228
Joined: Oct 2003
Reputation: 177
Post: #4
From the code:

ListItem.Date returns the m_dateTime object of a filetime.

For files this is the creation or modified date (might depend on the filesystem).

For library items, we typically don't have this value, so we set the value to dates we do have:

Shows: Premiered
Episodes: First Aired

Every other library item (albums, songs, artists, genres, movies, musicvids etc. etc.) will have no info available. So this gels with what you see. Whether it's sane or not I dunno Smile

Cheers,
Jonathan

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
Hitcher Offline
Skilled Skinner
Posts: 10,748
Joined: Aug 2007
Reputation: 98
Location: Eastleigh, UK
Post: #5
Thanks Jonathan.

So where does this wiki entry come from?

ListItem.Date - Day, start time and end time of current selected TV programme in a list or thumb control
find quote
pecinko Offline
Donor
Posts: 3,774
Joined: Dec 2008
Reputation: 51
Location: Prague / Belgrade
Post: #6
Well, in that case it's a pitty that years are not set to it for other library items as we could have universal tag - file dates for files and relevant info for library items. Video addons could use it for date published/aired.

My skins:

Amber
Quartz

find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,228
Joined: Oct 2003
Reputation: 177
Post: #7
@Hitcher: My guess is it's being used for the tvguide stuff perhaps (PVR)? No idea otherwise Smile

@pecinko: I don't mind a universal tag, but I prefer specific ones are available as well in cases where more than one date might be available for the item. Not sure if this applies here though!

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
Jezz_X Offline
Team-XBMC Skinner
Posts: 5,289
Joined: Jun 2006
Reputation: 57
Location: Earth
Post: #8
(2012-05-07 00:45)jmarshall Wrote:  @Hitcher: My guess is it's being used for the tvguide stuff perhaps (PVR)? No idea otherwise Smile

you are absolutely right about that now that you mention it that data is what shows in the PVR windows for its items
find quote