My experience with expressions is still very limited, but I'm using them more and more to make tagging easier. I only use very basic expressions, but am now ready to brave more complex ones.
Let's say I have 4 seasons of a TV show, each with 13 episodes. Typically, I name the album field with the Program name and season number, e.g. [program] = Familyrama; [album] = Familyrama S01. I want the [name] tags to be Familyrama S01E01 to Familyrama S01E13, and then Familyrama S02E01 to Familyrama S02E13 for season 2.
Currently, I rename the [name] field to:
=[album]E0Counter(1)
However, there are two issues with this:
1) Episodes 10 onwards have an extra 0, e.g. Familyrama S01E010 Familyrama S01E011 and Familyrama S01E013, which I manually remove by selecting the files and find and replacing.
2) I have to apply the expression one season (album) at a time. Otherwise, what should be Familyrama S02E01 becomes Familyrama S02E14, as a continuation of the "counter". Is there any way that the counter can be made to reset when the album value changes from S01 to S02 etc.? I'm sure there's a completely different way of going about this altogther, so I'd be very happy to hear your solutions.
Cheers.