AlfredJKwack Wrote:If I follow the logic correctly in ticket 10519, this would mean that adding items like so:
Code:
item.setInfo( type="music", infoLabels=labels )
plugin.addDirectoryItem(handle = int(sys.argv[1]),
url=track['filename'],
listitem = item,
isFolder = False)
would prevent XBMC from leveraging any id3 tag information contained within the file being added.
Whereas adding an item without calling setInfo would allow XBMC to retrieve the information from the file.
Correct. Which means you need to write (or find) a parser and include it in your plugin. In my case, that means a full EXIF/IPTC parser, which is not exactly lightweight, especially given one already exists in XBMC.
Quote:I'll have to test this out a bit to see if XBMC scrapes the files, and somehow stores the information somewhere.
It doesn't, if you set any information yourself.
Quote:Scraping the files every time would be a non-starter as far as I'm concerned due to performance...
I don't mean that it should. It should when reimporting the library, though (such as when something changes, like an album was added). Plus I believe it won't rescan a file unless it's changed, so it's not really slow or anything.
Quote:That being said, the only useful thing that's missing from my plugin at this point seems to be the artwork.
Album, artist, etc information isn't useful? You won't get any of that automatically because, I assume, you'd want to set the date as the date of the song/album release, not the modified date of the audio file. If you have XBMC scan the files, sorting by Date will be sorting by file date, not the release date of the song/album.
In my particular case, everything like the camera information, date taken, resolution, etc is not automatically scanned if all I want to do is set the date. The file date is rarely the date of the actual photograph, so I need to be able to set it by hand, but I can't without parsing the metadata myself.
Artwork you will not be able to get at because iTunes (stupidly) doesn't store the artwork in the file itself. Although, people can just add them in by hand with something like CoverScout. It's an extra step though. You may also be able to parse them out of the iTunes library, but again, if you set it by hand, you have to set
everything by hand.
Quote:Now with regards to ticket 10505. This seems to be a lot like ticked 10252. Is this a duplicate?
It would appear so. I'll ask to have mine marked as such.. er, or not, you've already done that. Thanks
Quote:Nice work on the iPhoto plugin btw. I'm still trying to understand how I could leverage the path substitution that you integrated so nicely.
Thanks. If you need any help, don't hesitate to contact me, either here or via email. I'm pretty busy at the moment but it can't hurt to ping me, in case it's something I can answer easily.
The path substitution stuff should be much the same though, no?
-jingai