INTERACT FORUM
Windows => Plug-in Development => Topic started by: scthom on August 09, 2005, 09:43:10 pm
-
version 11.0.309, Input SDK
When writing tags to a file (SetAttribute), MC uses "Year", but tries to read them (GetAttribute) using "Date". "Date" is not a field listed in MJFields.h. Is this normal behavior?
In addition, several other fields are used during the Update Tags from Library/Update Library from Tags functions: Band, Playback Range, Access Rating, Content ID, Content Distributor, Content Type, Disc #, Text, Album Gain, and Mix Album. None of these are in MJFields.h either (at least not the one included in the input SDK - I note they are in the database).
-
Year is deprecated, though still used in a few places. Date is now the preferred field name. The value is a double representing the number of days past 1900, it's an OleDateTime object. Accessing the Year field will just pull the year out of the Date field.
j
-
OK, so the MJFields.h listing is, in fact, out of date.
It took me a while to figure out there were both fields. Would have been cleaner and easier if the file was up to date in the SDK. I assume it's #defined as MF_DATE?
(so as to future-proof my code for when you do update it)
Thanks!
-
MF_DATE is correct
j
-
Year is deprecated, though still used in a few places. Date is now the preferred field name. The value is a double representing the number of days past 1900, it's an OleDateTime object. Accessing the Year field will just pull the year out of the Date field.
XML output has fields for DateCreated, DateModified etc. They're
large integers. Do you know how the format can be decoded?
-
Try a search here, but I think they're the number of minutes after a certain date.