Hi everyone. Can the script below be optimized or improved at all? I’ll pose one specific case, but am happy to hear your ideas.
The original goal was to include an album’s date at the front of its folder name, in square brackets (for folder-level sorting purposes).
I now realize how many deluxe, remaster, etc editions I have… so I’m considering including both the original and “reissue” date in that spot. Note that in my case I’m sticking with 4 digit (year-only) dates.
While this current script gets the job done, I thought I’d ask if it can be optimized at all to avoid any pitfalls. Specifically, and more advanced… would there be a way to skip repeated dates (such as 1964/1964) when the album is an original release and thus not a deluxe, remaster, etc?
$if2(%albumartist%,%artist%)/
$if(%originaldate%,[$left(%originaldate%,4))/$if(%date%,$left(%date%,4)] )$if($ne(%albumartist%,),%album%)/
$if($gt(%totaldiscs%,1),%discnumber%)$num(%tracknumber%,2) - %title%
That script currently outputs this format for a 2014 remaster:
The Beatles/[1965/2014] Help!/07 - Ticket to Ride.mp3
If my copy was the original 1965 release, it would output:
The Beatles/[1965/1965] Help!/07 - Ticket to Ride.mp3
However, it would seem more tidy with just the singular original date:
The Beatles/[1965] Help!/07 - Ticket to Ride.mp3
Looking forward to see what can be done here, thanks