ListItem.LastPlayed - (How) Can? I format the Output?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
KidKiwi Offline
Posting Freak
Posts: 792
Joined: May 2007
Reputation: 0
Post: #1
I've added a lastplayed label to my skin (Neon).

I'm using xbmcbuntu Eden 11V on my Ion and a June 5 Nightly for my Windows development machine.

Both machines give different outputs to this label.

Windows gives...eg - 06/06/2012
xbmcbuntu gives...eg 2012-29-06 18:33:02 (same as the db)

I've have tried countless trials to make it format differently, spent hours reading 100's posts and the wiki and I still can't get it to work.

An eg that I thought should work from the wiki...
Code:
<label>$INFO[ListItem.LastPlayed(d mmm yyyy)]</label>

Guarantee this is user error. What should I be doing??

Thx for the help.

ZOTAC IONITX-D-E Intel Atom N330 Dual Core 1.6 GHz NVIDIA ION with LIVE on SSD
find quote
KidKiwi Offline
Posting Freak
Posts: 792
Joined: May 2007
Reputation: 0
Post: #2
Is it possible someone could help me with this please. Thx.

ZOTAC IONITX-D-E Intel Atom N330 Dual Core 1.6 GHz NVIDIA ION with LIVE on SSD
find quote
Hitcher Online
Skilled Skinner
Posts: 9,942
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #3
You can only use <label>$INFO[ListItem.LastPlayed]</label> but I've no idea why they give different results unless it's a change to the database.

[Image: sig_zps3af3b48e.jpg]
find quote
Jezz_X Offline
Team-XBMC Skinner
Posts: 5,264
Joined: Jun 2006
Reputation: 55
Location: Earth
Post: #4
I'll take a pure guess and say maybe its because its setting what the localized version of the date on the box is by calling a "time" code too the database when its played and windows and ubuntu (not xbmc) use a different date layout

Skins I have done....
[Image: skinsq.png]
And others in the past...

Want to know what I'm working on currently? Check me out on Google+
find quote
KidKiwi Offline
Posting Freak
Posts: 792
Joined: May 2007
Reputation: 0
Post: #5
Thx guys for the input - been a couple of days since I looked as I got no replies. It is a pity you can't format the label. Maybe I should put it in a ticket. I'd quite like the ability to display just minutes as well.

Jezz, that could, be a possibility. I'll have to investigate further. I can put a black image over the time reference in the skin to hide that. Would be nice to be able to hide (make invisible) part of a label as well.

ZOTAC IONITX-D-E Intel Atom N330 Dual Core 1.6 GHz NVIDIA ION with LIVE on SSD
find quote