feat(books): show read-along chapters and hide audiobook request

An EPUB with Media Overlays already carries its narration, yet the Chapters tab required audio files and the Editions panel offered to request an audiobook the book already had.

List the narration sections of such an EPUB as a read-only chapter list, and count the narration as the audio half when deciding which format is missing. The chapters state gains an optional readAlong flag, so released clients keep working. Editing stays tied to audio files, because an EPUB has no chapter metadata to write.

Ref #2032
This commit is contained in:
neon
2026-11-01 17:05:33 +00:00
parent ba315c7718
commit 82608dbafd
16 changed files with 235 additions and 38 deletions
+5
View File
@@ -68,6 +68,11 @@ export interface BookChaptersState {
audibleRegion: AudibleRegion;
sources: BookChapterSources;
writeBack: BookChapterWriteBack;
/**
* True when the book has no audio files and the chapters are read off a read-along EPUB's
* narration instead. That list can be shown but not edited, saved or written.
*/
readAlong?: boolean;
}
export interface SaveBookChaptersRequest {