Audiobook enhancement (#2611)

* Audiobook enhancement

* Fix choppy virtual scroller with mixed audiobook/ebook cards by using uniform heights

* Fix audiobook cover regeneration for combined books and improve error messages

* Fix cover extraction when attaching audiobook files during rescan

* Set audiobookCoverUpdatedOn for cache busting when generating cover

* Add support for regenerating covers from specific book files

* Fix Continue Reading/Listening scrollers to filter by actual progress instead of primary file type

* Show ebook cover and open ebook reader in Continue Reading scroller for combined books

* Prevent read status from being downgraded when saving audiobook progress

* Fix BookCoverServiceTest to match updated regenerateCover method signature
---------

Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
ACX
2026-02-05 13:33:08 -07:00
committed by GitHub
co-authored by acx10
parent 92d1334f25
commit d38271de9c
121 changed files with 5078 additions and 909 deletions
@@ -97,6 +97,19 @@ export interface BookFileProgress {
progressPercent: number;
}
export interface AudiobookMetadata {
narrator?: string;
abridged?: boolean | null;
durationSeconds?: number;
bitrate?: number;
sampleRate?: number;
channels?: number;
codec?: string;
chapterCount?: number;
narratorLocked?: boolean;
abridgedLocked?: boolean;
}
export interface BookMetadata {
bookId: number;
title?: string;
@@ -129,7 +142,16 @@ export interface BookMetadata {
ranobedbId?: string;
ranobedbRating?: number | null;
hardcoverRating?: number | null;
audibleId?: string;
audibleRating?: number | null;
audibleReviewCount?: number | null;
narrator?: string;
abridged?: boolean | null;
narratorLocked?: boolean;
abridgedLocked?: boolean;
audiobookMetadata?: AudiobookMetadata;
coverUpdatedOn?: string;
audiobookCoverUpdatedOn?: string;
authors?: string[];
categories?: string[];
moods?: string[];
@@ -166,12 +188,16 @@ export interface BookMetadata {
lubimyczytacRatingLocked?: boolean;
ranobedbIdLocked?: boolean;
ranobedbRatingLocked?: boolean;
audibleIdLocked?: boolean;
audibleRatingLocked?: boolean;
audibleReviewCountLocked?: boolean;
coverUpdatedOnLocked?: boolean;
authorsLocked?: boolean;
categoriesLocked?: boolean;
moodsLocked?: boolean;
tagsLocked?: boolean;
coverLocked?: boolean;
audiobookCoverLocked?: boolean;
reviewsLocked?: boolean;
[key: string]: unknown;
@@ -206,11 +232,17 @@ export interface MetadataClearFlags {
lubimyczytacRating?: boolean;
ranobedbId?: boolean;
ranobedbRating?: boolean;
audibleId?: boolean;
audibleRating?: boolean;
audibleReviewCount?: boolean;
narrator?: boolean;
abridged?: boolean;
authors?: boolean;
categories?: boolean;
moods?: boolean;
tags?: boolean;
cover?: boolean;
audiobookCover?: boolean;
}
export interface MetadataUpdateWrapper {
@@ -11,6 +11,7 @@ export interface Library {
sort?: SortOption;
paths: LibraryPath[];
formatPriority?: BookType[];
allowedFormats?: BookType[];
}
export interface LibraryPath {