Posts: 26,215
Joined: Oct 2003
Reputation:
187
I expect ListItem.DateAdded will become available soon which would do what you want there. I have no problem with XBMC giving you a property for determining whether something is recently added though (eg if we allow how recently added to be defined by the user).
Posts: 3,919
Joined: Jul 2010
Reputation:
154
BigNoid
Team-Kodi Member
Posts: 3,919
Unless I can do a calculation based on systemdate i don't see how I can do that with dateadded?
I was thinking the property will be set to true when the database path of the item is in videodb://4/ , videodb://5/ or videodb://6/.
Only tricky part indeed is the advancedsetting that can be set to whatever by the users.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Ah, sorry, I misunderstood. You're only wanting to know if you're in a recently added node? That would be a container.content thing.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Are you wanting to show a "NEW!" image or some such? If so, using dateadded compared with the current date will do the trick.
Posts: 3,919
Joined: Jul 2010
Reputation:
154
BigNoid
Team-Kodi Member
Posts: 3,919
exactly, but the dateadded compared to current date will of course only be valid for that particular day that is was added. In the current situation it shows the flag if it's in the recently added list which is nicer I think. It works pretty well how I do it now, I'm just looking for a way to get rid of the ridiculous amount of stringcompares.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Nah, we'll add neat things to allow date in the last foo compares, date subtraction etc.
The problem is that the recently added list could be dynamic - i.e. in the future it's "just" another smart playlist, so could be up to the user to specify what it is (or it may not exist on the users system or whatever). Thus, we won't be able to compare to it necessarily.
Ofcourse, there's arguments to be had that XBMC should allow any such "new" flags to be configurable external to the skin - if so, I'd be fine with that in general (i.e. XBMC would offer it in the same way as watched status etc. internally which the skin could then use).
Posts: 2,441
Joined: Apr 2009
Reputation:
73
`Black
Team-Kodi Member
Posts: 2,441
2012-03-30, 14:08
(This post was last modified: 2012-03-30, 14:09 by `Black.)
Yes we really need support for at least banners and posters (which should be doable since the thetvdb has both images), everything else is not such a problem.
Posts: 3,919
Joined: Jul 2010
Reputation:
154
BigNoid
Team-Kodi Member
Posts: 3,919
I think a new content type is needed for online content such as youtube.
Posts: 823
Joined: Feb 2009
Reputation:
16
queeup
Posting Freak
Posts: 823
Yes beter addon integration welcome. It's my dream since i start addon coding.
Posts: 5,292
Joined: Jun 2006
Reputation:
62
Jezz_X
Team-XBMC Skinner
Posts: 5,292
Problem with better addon integration is every single addon wants too show different information and rarely are any 2 alike