jingai Wrote:Hmm. Ok, well I tried this. If I don't call setInfo() at all, Confluence's "Pic Thumbs" view displays the image resolution and creation date. If I do call it, the creation date is no longer displayed and resolution shows as "0 x 0".
In the List view, the date is displayed for each item if I do call setInfo() and it's not if I don't.
How can I get the skin to display date and resolution while also enabling sorting by date...?
-jingai
Im afraid I don't have pictures in my library to actually try this, and I have never written a picture plugin... But I took a look at the confluence skin and the documentation and it looks like these are the two infolabels you want to set (this might get you started in the right direction at least):
exif:resolution
exif:exiftime
I think these correspond to the following properties when read by the skin:
PictureResolution
PictureDateTime
Which is what the skin uses for display.
Please remember that although the infolabels mechanism in xbmc is extremely flexible and allows you to set nearly anything you want on an item - the
skin decides how to use it and when for the most part - and certain combinations of properties may yield differing results, because the skin often is setup to make decisions based on which combination of infolabels is available. The only place this is documented is in the skin itself unfortunately, and each skin tends to be a bit different.
A good approach when you are trying to get a specific view mode to display your information is to look at the skin itself and find the view mode defintion in it - then figure out what infolabels it is trying to read and make sure you set those particular ones correctly.
There is also quite a bit of default behavior you need to be aware of. You may have better luck (since you are saying that the items are being scanned in anyway) to simply not set the infolabels or the sort methods at all - if you leave those unmodified the skin will generally do what it normally does and you may get the result you are looking for without having to do a lot of customization.