Counter doesn't work - need help


#1

Hi,

if use this simple script

$filename(test.txt)
$loop($num(%track%,2))$loopend()%_max_counter%$loop(%artist%,1)$loopend() - %_max_counter%$loop(%year%,1)$loopend() - %_max_counter%

in a file list of 12 files with the same artist and the same year, the result is

12 - 12 - 12

instead of

12 - 1 - 1.

What is the problem?

Yours sincerely,

st


#2

I get 12 - 1 - 1


#3

I think you're right. I paste a wrong script. But here is the problematic one:

I run this script in a single album (all file has the same %album%) with 25 files (13 different artists):

And the result:

The number of album should be 1, not 13.
How to solve that problem? Any idea?

Thank you in advance.


#4

Here is a possible solution for my own problem :stuck_out_tongue: : if I asked for the %_max_counter% before the second loop (put its value in an unused variable), the script works. :smiley:

Like this:

The result:

Anyway, I think it is some kind of bug.