[Bug] Hide chapters page for ebook only book items #1155

Closed
opened 2026-04-24 23:34:26 +02:00 by adam · 5 comments
Owner

Originally created by @ambarnes2 on GitHub (May 26, 2023).

Describe the feature/enhancement

When editing an Ebook, there is an option to edit chapters, but when doing a lookup, it uses the Audiobook chapter lookup not one designed for Ebooks. It would be nice if we would be able to lookup chapters for ebooks.

Originally created by @ambarnes2 on GitHub (May 26, 2023). ### Describe the feature/enhancement When editing an Ebook, there is an option to edit chapters, but when doing a lookup, it uses the Audiobook chapter lookup not one designed for Ebooks. It would be nice if we would be able to lookup chapters for ebooks.
adam added the bug label 2026-04-24 23:34:26 +02:00
adam closed this issue 2026-04-24 23:34:26 +02:00
Author
Owner

@advplyr commented on GitHub (May 26, 2023):

Ah this is actually a bug. We should be hiding the chapter tool when there are no audio files.

Unless you know of an API we can lookup ebook chapters?

@advplyr commented on GitHub (May 26, 2023): Ah this is actually a bug. We should be hiding the chapter tool when there are no audio files. Unless you know of an API we can lookup ebook chapters?
Author
Owner

@darth3pio commented on GitHub (May 27, 2023):

*if the book doesn't have chapters embedded

Converting my Kindle library brings across chapter titles with it.

@darth3pio commented on GitHub (May 27, 2023): *if the book doesn't have chapters embedded Converting my Kindle library brings across chapter titles with it.
Author
Owner

@advplyr commented on GitHub (May 27, 2023):

@darth3pio How are the chapters stored? Inside the ebook file? What is the ebook file format?

EBook chapters and audiobook chapters need to be separate. I don't think we will be building something that modifies ebook chapters since that would be changing the structure of the epub.

@advplyr commented on GitHub (May 27, 2023): @darth3pio How are the chapters stored? Inside the ebook file? What is the ebook file format? EBook chapters and audiobook chapters need to be separate. I don't think we will be building something that modifies ebook chapters since that would be changing the structure of the epub.
Author
Owner

@darth3pio commented on GitHub (May 27, 2023):

Using the DeDRM plugin for Calibre, converting from encrypted AZW3 to EPUB.

Editing the contents of the EPUB in Calibre shows pages are in HTML format with an id attribute inside the body tag.

Instead of a CSS file this id is referenced inside a toc.ncx file which seems to provide a matching chapter header.

@darth3pio commented on GitHub (May 27, 2023): Using the DeDRM plugin for Calibre, converting from encrypted AZW3 to EPUB. Editing the contents of the EPUB in Calibre shows pages are in HTML format with an id attribute inside the body tag. Instead of a CSS file this id is referenced inside a toc.ncx file which seems to provide a matching chapter header.
Author
Owner

@advplyr commented on GitHub (May 28, 2023):

Fixed in v2.2.21

@advplyr commented on GitHub (May 28, 2023): Fixed in [v2.2.21](https://github.com/advplyr/audiobookshelf/releases/tag/v2.2.21)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#1155