# How to have a track number per disc?

**URL:** <https://discourse.beets.io/t/how-to-have-a-track-number-per-disc/490>\
**Category:** Help\
**Created:** [October 13, 2018, 8:45am UTC](https://discourse.beets.io/t/how-to-have-a-track-number-per-disc/490 "2018-10-13T08:45:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterb](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/peterb/32/164_2.png) [@peterb](https://discourse.beets.io/u/peterb)\
**Post date:** [October 13, 2018, 8:45am UTC](https://discourse.beets.io/t/how-to-have-a-track-number-per-disc/490/1 "2018-10-13T08:45:49Z")

</div>

I’ve done a bit of Googling and have checked out the discussion board, but I have not found a solution to this problem.

I have a lot of 2 disc compilation albums and I’d like to have the track filenames start with the disc and track number. I have successfully defined the right format in my configuration:

`Compilations/$album%aunique{}/%if{disctotal>1,$disc-}$track - $artist - $title`

But there is one thing I can’t figure out and that is having track number per disc. Right now, if I have two discs of 15 tracks, the first track on the second disc will be 16 and the last one 30. I would like to have them start from 1 till 15.

Is that even possible?

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [October 13, 2018, 9:09am UTC](https://discourse.beets.io/t/how-to-have-a-track-number-per-disc/490/2 "2018-10-13T09:09:09Z")

</div>

Take a look at the `per_disc_numbering` configuration option.

---

<div class="post-metadata">

**Author:** ![peterb](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/peterb/32/164_2.png) [@peterb](https://discourse.beets.io/u/peterb)\
**Post date:** [October 13, 2018, 9:27am UTC](https://discourse.beets.io/t/how-to-have-a-track-number-per-disc/490/3 "2018-10-13T09:27:50Z")

</div>

Thanks a lot. This is exactly what I was looking for. I don’t know why this didn’t turn up in my searches.

For reference:  
[https://beets.readthedocs.io/en/v1.3.17/reference/config.html#per-disc-numbering](https://beets.readthedocs.io/en/v1.3.17/reference/config.html#per-disc-numbering)
