INTERACT FORUM

More => Old Versions => JRiver Media Center 30 for Windows => Topic started by: Noteworthy on November 11, 2022, 12:04:20 pm

Title: Tag: Date (Release)
Post by: Noteworthy 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.
Title: Re: Tag: Date (Release)
Post by: zybex 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.
Title: Re: Tag: Date (Release)
Post by: marko 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.
Title: Re: Tag: Date (Release)
Post by: Noteworthy on November 11, 2022, 10:34:00 pm
Fantastic. Thank you very much zybex and marko.
Much appreciated.
Title: Re: Tag: Date (Release)
Post by: JimH on November 12, 2022, 07:30:56 am
The wiki topic might be useful:
https://wiki.jriver.com/index.php/Tag_on_Import