I have the followig and it should only add [RE-year]
if year
is greater than original_year
. However, it adds [RE-year]
to the path even when the year
and original_year match
.
# inline
inline:
album_fields:
rerelease: 1 if $year > $original_year else 0
# tagging
paths:
default: %the{$albumartist}/$album - [$original_year] [$catalognum] [$media-$format] [${bitdepth}bit] %if{$rerelease, [RE-$year]}/$albumartist - $album - $track - $title
EDIT:
I just realized, both values are probably seen as strings. Going to test theory.1
Nope:
rerelease: 1 if int($year) > int($original_year) else 0