Double replacement of output buffer content

Since Mp3tag v3.23 a new feature for developing tag sources has been implemented and documented, it says "You can reference contents of output buffers via %output% in all string parameters". I have used this new feature in my scripts very often and it proved to be very useful. But today I detected a behaviour of it, that is not intended and therefore I think is a bug.
Consider this example:

outputto "Test"
say "This is a Test of the new feature!"#
outputto "Result"
say "%Test%"

What would you expect to see in Result?
We get the following output:

output["Test"]= "This is a Test of the new feature!"
output["Result"]= "This is a This is a Test of the new feature! of the new feature!

As you can see, the Name "Test" of the output buffer is also contained in the output buffer text. The reference to the content of the buffer gets evaluated two times, first via "%Test%" and then again triggered by the word Test in the content of the buffer again. This second replacement is neither intended nor useful, because I never can be able to know in advance, which words an output buffer may contain, that happen to be identical to the name of this buffer.

1 Like

Thanks for reporting! I've fixed the issue with Mp3tag v3.27c.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.