Add id to the metadata json and use it when moving files if ino cannot be matched

This commit is contained in:
Cutch 2025-11-24 22:46:57 -05:00
parent 8758c62ae2
commit 6ac0a8a678
4 changed files with 17 additions and 1 deletions

View file

@ -821,6 +821,7 @@ class BookScanner {
const metadataFilePath = Path.join(metadataPath, `metadata.${global.ServerSettings.metadataFileFormat}`)
const jsonObject = {
absId: libraryItem.id,
tags: libraryItem.media.tags || [],
chapters: libraryItem.media.chapters?.map((c) => ({ ...c })) || [],
title: libraryItem.media.title,