Cleanup abmetadata file parsing & fix server crash #5268 #4287 #5142

This commit is contained in:
advplyr committed 2026-05-27 17:33:14 -05:00
1 parent c009db9f28
commit 1bad2d9072
4 files changed
+145 -33

No files matched your search

+3
View File
@@ -825,6 +825,9 @@ class BookScanner {
const metadataFilePath = Path.join(metadataPath, `metadata.${global.ServerSettings.metadataFileFormat}`)
/**
* Keys must match abmetadataGenerator.js
*/
const jsonObject = {
tags: libraryItem.media.tags || [],
chapters: libraryItem.media.chapters?.map((c) => ({ ...c })) || [],