S
Stig654321
Guest

Persistent Variables plugin
Thank you for this plugin.
I am trying to add the numeric values of a tag from the tracks of an album, but I can’t figure out the correct way to do that.
Say an album consists of 4 tracks.
They all have a tag named ‘count’, and the tracks have the respective values of 1, 3, 5 and 7.
I would like to have a tag ‘total’ that has these values added up, which for this example is 16.
The only thing I could come up with is something like this:
$set_a(total,$add($get_a(total),%count%))
$set(total_count,$get_a(total))
But that fails.
How should this be done?
Thanks.
And another question:
When doing this:
$set_a(_tracknumbers,$get_a(_tracknumbers); %tracknumber%)
$set_a(_aggregate_tracknumbers,$trim($get_a(_tracknumbers); %_tracknumbers%,
$setmulti(all_tracknumbers,$get_a(_aggregate_tracknumbers))
I would expect to get:
1; 2; 3; 4;
But I get:
1; 2; 3; 4; ; 1
So the script isn’t stopping right after track 4 was retrieved.
How can I change that?
4 posts - 2 participants
Read full topic
Continue reading...