# Generated chapter name isn't updated correctly when \`TITLE\` is edited

**URL:** https://community.mp3tag.de/t/generated-chapter-name-isnt-updated-correctly-when-title-is-edited/44322
**Category:** Fixed Bugs
**Tags:** bug-fixed
**Created:** [January 27, 2019, 6:41am UTC](https://community.mp3tag.de/t/generated-chapter-name-isnt-updated-correctly-when-title-is-edited/44322 "2019-01-27T06:41:22Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![elis](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/e19b73/32.png) [@elis](https://community.mp3tag.de/u/elis)
#### Post date: [January 27, 2019, 6:41am UTC](https://community.mp3tag.de/t/generated-chapter-name-isnt-updated-correctly-when-title-is-edited/44322/1 "2019-01-27T06:41:22Z")

</div>

Using v2.93, when editing the `TITLE` tag of a MP4 file with a generated chapter list, the previous title value is used for the chapter name.

For example, if the file was tagged with `TITLE` as "Original Title" and I change it to "New Title", the generated chapter marker is named "Original Title" when the file is saved. If I then change `TITLE` to "Another Title", the chapter is now named "New Title".

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 27, 2019, 9:30am UTC](https://community.mp3tag.de/t/generated-chapter-name-isnt-updated-correctly-when-title-is-edited/44322/2 "2019-01-27T09:30:53Z")

</div>

Can you upload an example file (or provide a link via PM) in the state where `TITLE` is "Original Title" so I can reproduce the issue?

---

<div class="post-metadata">

### Author: ![elis](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/e19b73/32.png) [@elis](https://community.mp3tag.de/u/elis)
#### Post date: [January 27, 2019, 9:53am UTC](https://community.mp3tag.de/t/generated-chapter-name-isnt-updated-correctly-when-title-is-edited/44322/3 "2019-01-27T09:53:53Z")

</div>

Sure, here's an example file (just 15 seconds of silence) with `TITLE` set. `.m4a` uploads aren't permitted so I zipped it.

[silence-15sec.zip](https://community.mp3tag.de/uploads/default/original/2X/0/069bd702f6a879a3cd78c082bda3ca7522ed1576.zip) (203.6 KB)

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 27, 2019, 9:58am UTC](https://community.mp3tag.de/t/generated-chapter-name-isnt-updated-correctly-when-title-is-edited/44322/4 "2019-01-27T09:58:54Z")

</div>

Thanks for the example file. I've tried to reproduce the issue by changing `TITLE` from "Original Title" to "New Title". Right after saving the changed tag, I've inspected the generated `chpl` atom in a hex editor and it's also stored as "New Title".

Can you double-check again and maybe point out the missing step on my side?

---

<div class="post-metadata">

### Author: ![elis](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/e19b73/32.png) [@elis](https://community.mp3tag.de/u/elis)
#### Post date: [January 27, 2019, 10:26am UTC](https://community.mp3tag.de/t/generated-chapter-name-isnt-updated-correctly-when-title-is-edited/44322/5 "2019-01-27T10:26:24Z")

</div>

Here are steps I'm reproducing with, hopefully they'll work for you!

1. Open Mp3tag
2. 'File' -\> 'Change directory...' and choose folder containing `silence-15sec.m4a`
3. Click on `silence-15sec.m4a` row in file list
4. Click on 'Title' text box in tag panel and change value to "New Title"
5. Click 'Save' button in toolbar
6. Click 'OK' on 'Saved tag in 1 of 1 files' dialog
7. Open `silence-15sec.m4a` in hex editor and notice `©nam` is "New Title" but `chpl` uses `Original Title`: ![silence-hex](https://community.mp3tag.de/uploads/default/original/2X/5/5bd51d50fd5d64eb3f31c02af83be19bc55dfa55.png)

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 27, 2019, 11:30am UTC](https://community.mp3tag.de/t/generated-chapter-name-isnt-updated-correctly-when-title-is-edited/44322/6 "2019-01-27T11:30:18Z")

</div>

I think what's happening is that you have "List chapters as separate files" disabled and Mp3tag then doesn't touch the chapter data on save (while already having generated a single chapter for gapless data when reading the file).

It's kind of an edge case and I have to think about how to handle this.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [February 8, 2019, 9:29am UTC](https://community.mp3tag.de/t/generated-chapter-name-isnt-updated-correctly-when-title-is-edited/44322/7 "2019-02-08T09:29:41Z")

</div>

I've fixed this with [Mp3tag v2.93a](https://community.mp3tag.de/t/455). Thanks for reporting!

---

<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: [March 10, 2019, 9:29am UTC](https://community.mp3tag.de/t/generated-chapter-name-isnt-updated-correctly-when-title-is-edited/44322/8 "2019-03-10T09:29:46Z")

</div>

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