I've got a number of actions setup within MP3Tag, and all is working well.
I do have on action which is to work on the "YEAR" atom (of an MP4 file), but which seems to constantly give me a result which is not what I expect.
I think a second set of eyes would help here:
Here is my action rule/function for the "YEAR" atom:
$if($len($trim(%year%)) >= 4,$left(%year%,4)-01-01T12:00:00,%year%)
My expected behavior is that: If the length of the "year" atom is greater than or equal to 4, the year atom should concatenate "-01-01T12:00:00" to the first 4 characters of the existing "year" atom. If the length is less than 4, keep the year atom as is.
However, when I run this rule, although the result of the length function is correctly calculated, I always seem to go into the concatenation (ie "true") rule (which does work)... the "else" rule never seems to get fired...
Does anyone see anything obvious that I've messed up?
This is strange, because I have a similar rule for my "ALBUM" atom, which works perfectly:
$if($len($trim(%album%)) > 0,$if($eql(%album%,%title%),%title%,%album%),%title%)
(If the album atom is empty, or if it has a value equal to title atom, put title atom's value in it. Otherwise, leave it as is.)