HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: Adil on 2021-06-09 02:52:15

Title: Masstagger: syntax to reduce date field
Post by: Adil on 2021-06-09 02:52:15
Hi there.

Could someone please let me know what syntax I could use in Masstagger to reduce date field to four-digit year?

I know Tag Sanitizer does that, but this component has deleted more tags in my files than I specify, so I've gotten along better with Masstagger itself.

Thanks in advance.
Title: Re: Masstagger: syntax to reduce date field
Post by: Fabcore on 2021-06-09 03:26:38
There you go
$cut(%date%,4)
Title: Re: Masstagger: syntax to reduce date field
Post by: Adil on 2021-06-09 03:30:04
@Fabcore

Thank you very much!
Title: Re: Masstagger: syntax to reduce date field
Post by: MordredKLB on 2021-06-11 17:14:06
$year(%date%) would also work, and is potentially safer at handling malformed dates.
Title: Re: Masstagger: syntax to reduce date field
Post by: Adil on 2021-06-11 22:06:32
Thanks! :)
Title: Re: Masstagger: syntax to reduce date field
Post by: francesco on 2021-09-28 06:54:00
Hi

is there a way to capitalize letters of several fileds like artist album and songs ?

for example change nick cave to Nick Cave ,songs like No Nore Shall We Apart and the other songs
I have read the guide but i have not found an answer , it's so powerfull plugins , could be added the feature capitalize

thanks
Title: Re: Masstagger: syntax to reduce date field
Post by: Porcus on 2021-09-28 07:06:59
Don't think that is related to the thread topic? I'm assuming it isn't:

File properties, highlight the fields in question (you can highlight several), right-click, "Capitalize".
It will make all the stupid mistakes (like capitalizing A and The and Roman Numeral Iii), but you cannot have it all without more work ... which you can often let https://www.foobar2000.org/components/view/foo_musicbrainz do for you.
Title: Re: Masstagger: syntax to reduce date field
Post by: francesco on 2021-09-28 07:16:52
Don't think that is related to the thread topic? I'm assuming it isn't:

File properties, highlight the fields in question (you can highlight several), right-click, "Capitalize".
It will make all the stupid mistakes (like capitalizing A and The and Roman Numeral Iii), but you cannot have it all without more work ... which you can often let https://www.foobar2000.org/components/view/foo_musicbrainz do for you.
Hi Porcus
but  foo_musicbranz is to tag an album online
i just wanted to capitalize some fileds.. maybe to do it are better ofther freeware like mp3tag because i can't find anything to do with masstaggger
thanks
Title: Re: Masstagger: syntax to reduce date field
Post by: Porcus on 2021-09-28 09:41:11
i just wanted to capitalize some fileds..
You don't need masstagger. Select files, Ctrl-Enter for properties, select the fields you want to have capitalized, and do it.
Title: Re: Masstagger: syntax to reduce date field
Post by: j7n on 2021-09-28 20:45:14
Here is a MassTagger preset function that decapitalizes a list of common 3-letter and shorter words and makes some exceptions. Minimal manual fixup is required. It is not possible to perfectly automate the process because phrasal verbs need to be understood in context. It processes artist, title and album, but you can add more fields at the start and end. Use the "Import from file" button to load the preset.