Possible to calculate a period of release years?

When there is a compilation that spans a period of years, I prefer to keep the individual release years with the tracks, instead of the release year of the compilation (I find that to be more meaningful). For the naming script, I maintain a %period% tag to reflect the span of years included.

I was wondering if this could be automated, as an aggregation of the individual release years within the album?

I am imagining like this:

  • if all release years within an album are identical, as in a “normal” album release, use that value
  • otherwise, return “min(year) - max(year)” (within the album)

Would that be possible?

1 Like