Change Track values with Actions

Hi,

I've been reading the Regular Expressions thread and it's quite interesting.
Many posts have helped me to get how I like them.

Now there is the last thing I can't seem to resolve.

I'd like to add an action (eg. regular expression) to get TRACK from 01, 02, 03 to 1/3,2/3, 3/3

Whole story:

I usually get my tags from Discogs, with the Discogs release ID.
I like to have the files named: 01. artist - title.mp3 ( %track%. %artist% - %title%)
And the track be such as these: eg. 1/3, 2/3, 3/3 ( [track]/[numtracks] )

When I start it use autonumbering to change the track to 01, 02, 03.
Rename the file and then turn it 1/3, 2/3, 3/3.
Today I discovered there was an easier was to do this: with Actions. :slight_smile:
The Regular Expressions Thread has helped a lot, but I can't seem to figure out how to get from 01, 02, 03 to 1/3,2/3, 3/3 with RegEx. :wacko:

Could you help me please? :slight_smile:

I'd also like to add the %discnumber%, I used to do it manually.
Now for 1 disc albums I use actions: Format Value "DISCNUMBER": 1/1
But for albums with more than one disc, I was thinking to add some if(x,y) string:

  • If "%iscompilation% = 1 or yes" then value: 1/1
  • If "%iscompilation% = 0 or no" then value: 1/x (with x an amount of discs)
    or something like that... :flushed:

No idea if this is even possible, anyone got an idea?

Greetings, Aythamie

You don't have to run the track wizard twice, if you use $num(%track%,1) it turns i.e. 02/03 into 2

I wrote here how to turn track wizard into an action but it only works for one album/directory:
/t/7746/1

Thank you, it works perfectly now.

I'm still trying to find out how to get multiple cds to be named eg. 1/2 for cd1 in %discnumber% and 2/2 for cd2.