INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: MJFields.h (Input SDK) out of date?  (Read 2000 times)

scthom

  • Citizen of the Universe
  • *****
  • Posts: 621
MJFields.h (Input SDK) out of date?
« 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).
Logged

John Gateley

  • Citizen of the Universe
  • *****
  • Posts: 4957
  • Nice haircut
Re: MJFields.h (Input SDK) out of date?
« Reply #1 on: August 10, 2005, 10:31:25 am »

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

scthom

  • Citizen of the Universe
  • *****
  • Posts: 621
Re: MJFields.h (Input SDK) out of date?
« Reply #2 on: August 13, 2005, 01:03:21 am »

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!
Logged

John Gateley

  • Citizen of the Universe
  • *****
  • Posts: 4957
  • Nice haircut
Re: MJFields.h (Input SDK) out of date?
« Reply #3 on: August 15, 2005, 10:55:52 am »

MF_DATE is correct

j

mi5

  • Regular Member
  • Recent member
  • *
  • Posts: 16
re: MJFields.h (Input SDK) out of date?
« Reply #4 on: November 02, 2005, 03:14:31 pm »

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?
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72444
  • Where did I put my teeth?
Re: MJFields.h (Input SDK) out of date?
« Reply #5 on: November 02, 2005, 03:17:06 pm »

Try a search here, but I think they're the number of minutes after a certain date.
Logged
Pages: [1]   Go Up