Number behind multdisc cd

Example
Andrew Lolyd Webber /Jesus Christ SuperStar/ Digital Media 1 en Digital Media 2 becomes after
beet imp -A

Andrew lloyd Webber/Jesus Christ 1/cd1 / tracks an Jesus Christ 2/cd2 /tracks

Have changed config and try several options but cant find the solution.

aths:
default: $albumartist/$album%aunique{}/%if{$multidisc,CD $disc/}$albumartist - $album%aunique{} - $track $title
singleton: Non-Album/{$artist}/{$title}
comp: Compilations/{$album}%aunique{}/$track {$title}
item_fields:
multidisc: 1 if disctotal > 1 else 0

I did something similar with inline and my custom function i_disc_layer. Not sure why yours isn’t working.

Keep in mind this is a ~3 year old config so it may not 100% work.

Can you link the musicbrainz page for the release? Is it a compilation?

I think with inline you can send “print” commands that show if your code is running.