[Enhancement]: Shift Chapter Lookup to account for Audible branding #2682

Closed
opened 2026-04-25 00:09:34 +02:00 by adam · 9 comments
Owner

Originally created by @chriscam85 on GitHub (Mar 23, 2025).

Type of Enhancement

Web Interface/Frontend

Describe the Feature/Enhancement

Please add a setting to allow for inclusion/exclusion of branding durations when using the chapter lookup.
When I lookup the chapter markers for books I procured from non-Audible sources, I see that the durations are always incorrect, and it gives me pause. I looked at the message being received, and it does appear that the intro/outro durations are included (brandIntroDurationMs and brandOutroDurationMs).
Please allow for us to select whether or not those branding markers should be included in the chapter timings.
Thanks!

Why would this be helpful?

To ensure accuracy of chapters for audiobooks regardless of where they were sourced, the "Audible" branding should be removed from the calculations.

Future Implementation (Screenshot)

Image

Audiobookshelf Server Version

v2.20.0

Current Implementation (Screenshot)

No response

Originally created by @chriscam85 on GitHub (Mar 23, 2025). ### Type of Enhancement Web Interface/Frontend ### Describe the Feature/Enhancement Please add a setting to allow for inclusion/exclusion of branding durations when using the chapter lookup. When I lookup the chapter markers for books I procured from non-Audible sources, I see that the durations are always incorrect, and it gives me pause. I looked at the message being received, and it does appear that the intro/outro durations are included (brandIntroDurationMs and brandOutroDurationMs). Please allow for us to select whether or not those branding markers should be included in the chapter timings. Thanks! ### Why would this be helpful? To ensure accuracy of chapters for audiobooks regardless of where they were sourced, the "Audible" branding should be removed from the calculations. ### Future Implementation (Screenshot) ![Image](https://github.com/user-attachments/assets/cf241e55-3466-4b07-b73c-fd65e6bc3a60) ### Audiobookshelf Server Version v2.20.0 ### Current Implementation (Screenshot) _No response_
adam added the enhancement label 2026-04-25 00:09:34 +02:00
adam closed this issue 2026-04-25 00:09:34 +02:00
Author
Owner

@chriscam85 commented on GitHub (Mar 24, 2025):

Alternatively, since the majority of effort is due to the intro branding... Prep-populate the Shift Times with the negative value of brandIntroDurationMs. This way, you do the lookups, apply everything, then do shit times, and Add. The chapters would then be in a "no branding" state.

@chriscam85 commented on GitHub (Mar 24, 2025): Alternatively, since the majority of effort is due to the intro branding... Prep-populate the Shift Times with the negative value of brandIntroDurationMs. This way, you do the lookups, apply everything, then do shit times, and Add. The chapters would then be in a "no branding" state.
Author
Owner

@advplyr commented on GitHub (Mar 25, 2025):

What's the duration and is it always the same?

@advplyr commented on GitHub (Mar 25, 2025): What's the duration and is it always the same?
Author
Owner

@chriscam85 commented on GitHub (Mar 26, 2025):

The duration is not always the same.
As an example, the following three images are from the same series, and the last is another book (different series) which does not do the "This is Audible" at the start.

Image

Image

Image

Image

@chriscam85 commented on GitHub (Mar 26, 2025): The duration is not always the same. As an example, the following three images are from the same series, and the last is another book (different series) which does **not** do the "This is Audible" at the start. ![Image](https://github.com/user-attachments/assets/0a663f28-7b57-4feb-ae8a-81e6264959ac) ![Image](https://github.com/user-attachments/assets/4f5bb4a4-9d69-497a-a100-17de27fdc44c) ![Image](https://github.com/user-attachments/assets/e51c2cf8-e8ff-4b1e-bd32-3e72ec833bc2) ![Image](https://github.com/user-attachments/assets/dbab5594-eba0-469f-aa33-9c654d1ad336)
Author
Owner

@advplyr commented on GitHub (Apr 5, 2025):

Have you tested using the shift tool with the brand intro duration amount and it correctly lines up with the book you have?

I don't have any examples in my library to test with and the audible ones I do have with an intro the brandIntroDurationMs doesn't seem to make sense.

@advplyr commented on GitHub (Apr 5, 2025): Have you tested using the shift tool with the brand intro duration amount and it correctly lines up with the book you have? I don't have any examples in my library to test with and the audible ones I do have with an intro the brandIntroDurationMs doesn't seem to make sense.
Author
Owner

@chriscam85 commented on GitHub (Apr 7, 2025):

Yes, in all my examples, using the shift tool with the intro duration (as negative) does correct the chapters.
I have a lot of books to process and looking at the Network tab will be time-consuming, so I suggest pre-populating the shift value.

@chriscam85 commented on GitHub (Apr 7, 2025): Yes, in all my examples, using the shift tool with the intro duration (as negative) does correct the chapters. I have a lot of books to process and looking at the Network tab will be time-consuming, so I suggest pre-populating the shift value.
Author
Owner

@advplyr commented on GitHub (Apr 8, 2025):

Interesting, I found some to test and the timestamps didn't line up

@advplyr commented on GitHub (Apr 8, 2025): Interesting, I found some to test and the timestamps didn't line up
Author
Owner

@chriscam85 commented on GitHub (Apr 8, 2025):

That's odd. I would think that the chapter marks coming from audible should always line up, including the marker for the brand intro.
Did you get those test audios from audible?
Should I gather more examples to verify what I'm seeing beyond these couple series I tested?

@chriscam85 commented on GitHub (Apr 8, 2025): That's odd. I would think that the chapter marks coming from audible should always line up, including the marker for the brand intro. Did you get those test audios from audible? Should I gather more examples to verify what I'm seeing beyond these couple series I tested?
Author
Owner

@github-actions[bot] commented on GitHub (May 15, 2025):

Fixed in v2.22.0.

@github-actions[bot] commented on GitHub (May 15, 2025): Fixed in [v2.22.0](https://github.com/advplyr/audiobookshelf/releases/tag/v2.22.0).
Author
Owner

@danseitz commented on GitHub (May 24, 2025):

Sorry to reopen, but I think this feature would be so much better if it was an option on the chapter matching page instead of the search page—if you could toggle it on and off and be able to visually compare if your book matches the proposed chapter structure that makes it much more useful. Otherwise you’re having to blindly guess if the book length matches the proposed chapter structure and it’s not easy to go back and reselect the toggle. In this image I indicated where might be a good place to include the toggle (and have it update the mappings in realtime) as opposed to the ASIN search.

Image

@danseitz commented on GitHub (May 24, 2025): Sorry to reopen, but I think this feature would be so much better if it was an option on the chapter matching page instead of the search page—if you could toggle it on and off and be able to visually compare if your book matches the proposed chapter structure that makes it much more useful. Otherwise you’re having to blindly guess if the book length matches the proposed chapter structure and it’s not easy to go back and reselect the toggle. In this image I indicated where might be a good place to include the toggle (and have it update the mappings in realtime) as opposed to the ASIN search. ![Image](https://github.com/user-attachments/assets/ed3614b5-4f5c-4c8e-b092-e8f917a05ac1)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2682