INTERACT FORUM

Please login or register.

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

Author Topic: MJFilesAutomation.Sort2() Seems to Ignore Some Date Fields  (Read 2970 times)

cncb

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3105

The files Sort2() function seems to just ignore some date fields.  The standard Name, Date, etc. fields work ok but the specific date criteria ( [Date(year)], [Date(month)], and [Date(day)] )  seem to be ignored when used in this function??  Typing these directly into the Search box in MC works fine?
Logged
-Craig    MO 4Media remote and player:  Android/TV/Auto | iOS | Windows 10/UWP

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Re: MJFilesAutomation.Sort2() Seems to Ignore Some Date Fields
« Reply #1 on: March 24, 2008, 09:15:31 pm »

Try escaping the parenthesis with a slash (/).

If that works, we should probably switch the program to do it for you automatically when calling Sort2(...).
Logged
Matt Ashland, JRiver Media Center

cncb

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3105
Re: MJFilesAutomation.Sort2() Seems to Ignore Some Date Fields
« Reply #2 on: March 24, 2008, 10:18:33 pm »

I tried "[Date/(day/)]" and it still doesn't seem to work.  Did I do this correctly?  I also tried a backslash with the same results.
Logged
-Craig    MO 4Media remote and player:  Android/TV/Auto | iOS | Windows 10/UWP

cncb

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3105
Re: MJFilesAutomation.Sort2() Seems to Ignore Some Date Fields
« Reply #3 on: March 26, 2008, 11:26:17 am »

Any chance to look at this, Matt?  Thanks.
Logged
-Craig    MO 4Media remote and player:  Android/TV/Auto | iOS | Windows 10/UWP

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Re: MJFilesAutomation.Sort2() Seems to Ignore Some Date Fields
« Reply #4 on: March 27, 2008, 12:14:39 pm »

I can't reproduce any problem.

But looking closer at your examples, I noticed there's no space between "Date" and "(day)".  It should be:
Date (day)

Could it be that simple?
Logged
Matt Ashland, JRiver Media Center

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Re: MJFilesAutomation.Sort2() Seems to Ignore Some Date Fields
« Reply #5 on: March 27, 2008, 12:15:45 pm »

As an aside, you might consider using the MF_DATE_DAY (and similar) defines from MJFields.h, which should be in the SDK.
Logged
Matt Ashland, JRiver Media Center

cncb

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3105
Re: MJFilesAutomation.Sort2() Seems to Ignore Some Date Fields
« Reply #6 on: March 27, 2008, 12:29:16 pm »

Could it be that simple?

Yes, it could be and is  :-[.  Thanks and sorry about that.
Logged
-Craig    MO 4Media remote and player:  Android/TV/Auto | iOS | Windows 10/UWP
Pages: [1]   Go Up