INTERACT FORUM

Please login or register.

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

Author Topic: Tag: Date (Release)  (Read 594 times)

Noteworthy

  • Recent member
  • *
  • Posts: 32
Tag: Date (Release)
« on: November 11, 2022, 12:04:20 pm »

My flac files have a tag RELEASETIME that contains the release date for a given track in the format yyyy-mm-ddThh:mm:ssZ.
eg. 1977-03-15T00:00:00Z (The suffix is always constant T00:00:00Z)

Is there any way to map RELEASETIME to Date (Release) so that when a track is imported into my library the release date is automatically populated?
Any help would be much appreciated.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2619
Re: Tag: Date (Release)
« Reply #1 on: November 11, 2022, 03:06:35 pm »

You can try this, though I'm not sure the tag() function works during import:

On the AutoImport settings there's a section to define Tags to set during import. Click on Add, select the "Date (Release)" field, and set it to this expression:
convertdate(tag(RELEASETIME))

The timestamps you describe are UTC timestamps. If you want to correct them to your timezone just replace the red part with your offset in hours:
Math(convertdate(tag(RELEASETIME))+2/24)

You can use the same expression to quickly set the field on already-imported files using the Tag panel.
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: Tag: Date (Release)
« Reply #2 on: November 11, 2022, 10:16:41 pm »

You can try this, though I'm not sure the tag() function works during import:
It does. I use it in a few auto import rules for my photos. Test using the tag window or inline editing to confirm it does what you want, then create the auto import rule and forget all about it.

Noteworthy

  • Recent member
  • *
  • Posts: 32
Re: Tag: Date (Release)
« Reply #3 on: November 11, 2022, 10:34:00 pm »

Fantastic. Thank you very much zybex and marko.
Much appreciated.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72439
  • Where did I put my teeth?
Re: Tag: Date (Release)
« Reply #4 on: November 12, 2022, 07:30:56 am »

Logged
Pages: [1]   Go Up