# Autodisc numbering from filename

**URL:** https://community.mp3tag.de/t/autodisc-numbering-from-filename/59644
**Category:** Support
**Created:** [January 8, 2023, 12:17pm UTC](https://community.mp3tag.de/t/autodisc-numbering-from-filename/59644 "2023-01-08T12:17:16Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![gialandra](https://community.mp3tag.de/user_avatar/community.mp3tag.de/gialandra/32/12524_2.png) [@gialandra](https://community.mp3tag.de/u/gialandra)
#### Post date: [January 8, 2023, 12:17pm UTC](https://community.mp3tag.de/t/autodisc-numbering-from-filename/59644/1 "2023-01-08T12:17:16Z")

</div>

Hi, I don't know if it's possible but I'll try anyway and you'll tell me if it's possible. I would like MP3TAG to index my discs based on the file name: in the figure, Osea CD 1, Gioele CD 2, ...

 ![2023-01-08_130736](https://community.mp3tag.de/uploads/default/original/2X/1/114f97b90274b64378cc0c1e5fc4b01e8d4d69dc.jpeg)

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [January 8, 2023, 12:33pm UTC](https://community.mp3tag.de/t/autodisc-numbering-from-filename/59644/2 "2023-01-08T12:33:04Z")

</div>

Do you have all this tracks in one (and only one) directory?

If yes, I don't see how Mp3tag could guess what belongs to the same disc.

What you can do:  
Manually select all the 14 first tracks "Osea" and set the Discnumber to 1.  
Then select the next 5 tracks "Gioele" and set the Discnumber to 2.

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [January 8, 2023, 12:39pm UTC](https://community.mp3tag.de/t/autodisc-numbering-from-filename/59644/3 "2023-01-08T12:39:07Z")

</div>

> [@LyricsLover](#):
>
> Do you have all this tracks in one (and only one) directory?
> 
> If yes, I don't see how Mp3tag could guess what belongs to the same disc.

With Mp3Tag-version 3.18 **f** you can select a tagfield for the reset of the discnumber, e.g. ALBUM.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [January 8, 2023, 12:40pm UTC](https://community.mp3tag.de/t/autodisc-numbering-from-filename/59644/4 "2023-01-08T12:40:58Z")

</div>

> [@poster](#):
>
> With Mp3Tag-version 3.18 **f** you can select a tagfield for the reset of the discnumber, e.g. ALBUM.

The album is (currently) always the same.  
You suggest, that @gialandra fills the individual album names from the filename first and then use this brandnew possibility from the [beta-version of Mp3tag](https://community.mp3tag.de/t/mp3tag-development-build-status/455)?

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [January 8, 2023, 1:15pm UTC](https://community.mp3tag.de/t/autodisc-numbering-from-filename/59644/5 "2023-01-08T13:15:52Z")

</div>

> [@LyricsLover](#):
>
> You suggest, that @gialandra fills the individual album names from the filename first and then use this brandnew possibility from the [beta-version of Mp3tag](https://community.mp3tag.de/t/mp3tag-development-build-status/455)?

It was more of a general comment that wasn't aimed at the questioner's specific case at hand, because I had the impression that this new feature should be mentioned, that the track number assistant can no longer only be reset on changing directories.  
In the case of the questioner, the existing tags apparently give no clue at all as to which files should belong to which disc. Ultimately, all that remains is manual work, marking the discs individually and using the track number assistant.

---

<div class="post-metadata">

### Author: ![gialandra](https://community.mp3tag.de/user_avatar/community.mp3tag.de/gialandra/32/12524_2.png) [@gialandra](https://community.mp3tag.de/u/gialandra)
#### Post date: [January 8, 2023, 1:19pm UTC](https://community.mp3tag.de/t/autodisc-numbering-from-filename/59644/6 "2023-01-08T13:19:54Z")

</div>

I tried the beta version and in fact it's the right way: I filled the comment tag that was empty with the first word of the title (tag - tag \> comment: `$regexp(%title%,'(.*?)\ (.*)',$1))` and I used the new feature suggested by manifesto and then restored the comment field and this is the result: really powerful this program, thanks to the author and thanks to all of you!

 ![2023-01-08_141417](https://community.mp3tag.de/uploads/default/original/2X/a/a4fdd96b2cfa4e9175ad68e1c0ad19038d79ccf6.jpeg)

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [January 8, 2023, 1:27pm UTC](https://community.mp3tag.de/t/autodisc-numbering-from-filename/59644/7 "2023-01-08T13:27:24Z")

</div>

How do you derive the correct discnumber from a word like "Osea"?  
Your screenshot shows the discnumber 35 for Osea. I can't see any relationsship between the number and the first word from your title.  
Would you mind to explain it?

---

<div class="post-metadata">

### Author: ![gialandra](https://community.mp3tag.de/user_avatar/community.mp3tag.de/gialandra/32/12524_2.png) [@gialandra](https://community.mp3tag.de/u/gialandra)
#### Post date: [January 8, 2023, 1:46pm UTC](https://community.mp3tag.de/t/autodisc-numbering-from-filename/59644/8 "2023-01-08T13:46:48Z")

</div>

Osea is the thirty-fifth book of the Catholic canon of the Bible so I set the window as in the screenshot:

 ![2023-01-08_144615](https://community.mp3tag.de/uploads/default/original/2X/a/ae01ec70183ea18dfb8ce308ce3615e8ea1b84d6.png)

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [January 8, 2023, 1:51pm UTC](https://community.mp3tag.de/t/autodisc-numbering-from-filename/59644/9 "2023-01-08T13:51:25Z")

</div>

> [@gialandra](#):
>
> Osea is the thirty-fifth book of the Catholic canon of the Bible

Don't get me wrong: I believe you. 😇  
Just to be sure:  
You set this starting number 35 manually, because you KNOW that this is the number 35, right?  
And "Gioele" is by accident the following book with the number #36? And "Amos" #37?

---

<div class="post-metadata">

### Author: ![gialandra](https://community.mp3tag.de/user_avatar/community.mp3tag.de/gialandra/32/12524_2.png) [@gialandra](https://community.mp3tag.de/u/gialandra)
#### Post date: [January 8, 2023, 1:56pm UTC](https://community.mp3tag.de/t/autodisc-numbering-from-filename/59644/10 "2023-01-08T13:56:23Z")

</div>

Right, you can see the Catholic canon of the Bible here: [http://www.bibbia.net/](http://www.bibbia.net/)

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 7, 2023, 1:56pm UTC](https://community.mp3tag.de/t/autodisc-numbering-from-filename/59644/11 "2023-02-07T13:56:58Z")

</div>

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