Author Topic: Music brainz how to create naming script for year, month and date?  (Read 229 times)

kanal

  • Newbie
  • *
  • Posts: 3
Currently my file naming script is the following:
$if(%_subfolder%,%_subfolder%)/
$if2(%albumartist%,%artist%)/
[$if2(%originaldate%,%date%)] %album% $if(%catalognumber%,{%catalognumber%})/
$if(%discnumber%,%discnumber%,1).$num(%tracknumber%,2). %title%

The output (of the folder) will be: [1977-06-03] Exodus {1734079}
What I want is: [1977.06.03] Exodus {1734079}

I've tried adding: $if(%Y%.,%M.%D%), $if(%year%.,%month.%day%), and a few more less obvious ones. None of them worked.
I tried to understand their documentations but it didn't make sense to me (I don't know anything about scripting), I followed this link "https://picard-docs.musicbrainz.org/en/functions/func_datetime.html" and added "$datetime(\%Y-\%m-\%d)" to my script which gave me an "unknown function 'datetime'" error.

Thanks in advance! I'm also curious of the name preferences people here have.
Last Edit: February 21, 2021, 12:32:21 PM by kanal


hiccup

  • Editor
  • Hero Member
  • *****
  • Posts: 4837
not much help here :/
I'll help you.
Your question is specifically about scripting for MusicBrainz' Picard.
They also have a very helpful forum:
https://community.metabrainz.org/c/picard/13

kanal

  • Newbie
  • *
  • Posts: 3
I'll help you.
Your question is specifically about scripting for MusicBrainz' Picard.
They also have a very helpful forum:
https://community.metabrainz.org/c/picard/13
Thank you! I was unaware of this community, will definitely be helpful!

Terry Walker

  • Jr. Member
  • **
  • Posts: 92
I'll help you.
Your question is specifically about scripting for MusicBrainz' Picard.
They also have a very helpful forum:
https://community.metabrainz.org/c/picard/13
Thank you! I was unaware of this community, will definitely be helpful!
There are many people here who can really help you but some are busy. Are you done with your script?