mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
fix(metadata): extract and save audiobook chapters and embedded metadata
The book dock metadata service now routes audio formats through the audio extractor to extract chapters, duration, narrators, and other embedded tags. This ensures that audiobook metadata is correctly mapped and persisted during the import process. Closes #322
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import type { AudiobookChapter } from "./audiobook";
|
||||
|
||||
export type BookDockFileStatus = "pending" | "extracting" | "fetching" | "ready" | "error";
|
||||
export type BookDockAutoFinalizeMetadataMode = "safe_merge" | "fetched_only" | "embedded_only";
|
||||
|
||||
@@ -5,6 +7,7 @@ export interface BookDockMetadata {
|
||||
title?: string;
|
||||
subtitle?: string;
|
||||
authors?: string[];
|
||||
narrators?: string[];
|
||||
description?: string;
|
||||
publisher?: string;
|
||||
publishedYear?: number;
|
||||
@@ -16,6 +19,8 @@ export interface BookDockMetadata {
|
||||
seriesIndex?: number;
|
||||
genres?: string[];
|
||||
coverUrl?: string;
|
||||
durationSeconds?: number;
|
||||
chapters?: AudiobookChapter[];
|
||||
}
|
||||
|
||||
export interface BookDockFile {
|
||||
|
||||
Reference in New Issue
Block a user