audiobookshelf/test/server
Conor Bronsdon 42c6798981 Apply minified serialization to books inside collections
The GET /api/libraries/:id/collections endpoint captured the minified
flag on the response payload but never passed it down to the book
serialization, so each book was always returned fully expanded with its
complete libraryFiles array and heavy media fields (audioFiles, chapters,
tracks). For libraries with multi-file audiobooks this produced responses
of tens of megabytes even when minified=1 was requested.

Thread the minified flag through getOldCollectionsJsonExpanded and
Collection.toOldJSONExpanded so that, when requested, books use the
existing library item minified form. Non-minified requests are unchanged.

Fixes #5170
2026-07-09 02:59:25 -07:00
..
controllers Update LibraryItemController test with 403 tests 2026-04-21 17:13:52 -05:00
finders Improved subtitle parsing to account for bare colon in title 2026-02-06 14:31:09 -05:00
managers Add ApiCacheManager test for should remove recent-episodes cache entries 2026-04-26 16:51:39 -05:00
migrations Improve book library page query performance for author sort order (#4080) 2025-03-17 17:09:49 -05:00
models Apply minified serialization to books inside collections 2026-07-09 02:59:25 -07:00
objects Fixes + add progress to m4b and embed tools 2024-07-20 12:28:06 +03:00
providers Add tests for cleanSeriesSequence 2024-03-14 19:37:51 +02:00
utils Improved subtitle parsing to account for bare colon in title 2026-02-06 14:31:09 -05:00
Logger.test.js Log non-strings into log file like console.log does 2024-09-11 19:58:30 +03:00