mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user