From 6a610c0bb12ae1d6d6189c69284612af6d8e920f Mon Sep 17 00:00:00 2001 From: ACX <8075870+acx10@users.noreply.github.com> Date: Fri, 27 Feb 2026 00:41:38 -0700 Subject: [PATCH] fix magic shelf audiobook duration filter and add missing audio file types (#3059) (#3064) --- .../java/org/booklore/service/book/BookQueryService.java | 4 +++- .../features/magic-shelf/component/magic-shelf-component.ts | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/booklore-api/src/main/java/org/booklore/service/book/BookQueryService.java b/booklore-api/src/main/java/org/booklore/service/book/BookQueryService.java index 2c3511702..9139e6fde 100644 --- a/booklore-api/src/main/java/org/booklore/service/book/BookQueryService.java +++ b/booklore-api/src/main/java/org/booklore/service/book/BookQueryService.java @@ -150,7 +150,9 @@ public class BookQueryService { m.setExternalUrl(null); m.setThumbnailUrl(null); m.setProvider(null); - m.setAudiobookMetadata(null); + if (m.getAudiobookMetadata() != null) { + m.getAudiobookMetadata().setChapters(null); + } m.setBookReviews(null); // Strip unused ratings diff --git a/booklore-ui/src/app/features/magic-shelf/component/magic-shelf-component.ts b/booklore-ui/src/app/features/magic-shelf/component/magic-shelf-component.ts index 0ecc445a5..fe5b8277d 100644 --- a/booklore-ui/src/app/features/magic-shelf/component/magic-shelf-component.ts +++ b/booklore-ui/src/app/features/magic-shelf/component/magic-shelf-component.ts @@ -279,7 +279,10 @@ export class MagicShelfComponent implements OnInit { {label: 'CB7', value: 'cb7'}, {label: 'FB2', value: 'fb2'}, {label: 'MOBI', value: 'mobi'}, - {label: 'AZW3', value: 'azw3'} + {label: 'AZW3', value: 'azw3'}, + {label: 'M4B', value: 'm4b'}, + {label: 'M4A', value: 'm4a'}, + {label: 'MP3', value: 'mp3'} ]; get readStatusOptions() {