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

@ -574,6 +574,7 @@ class LibraryItem extends Model {
let jsonObject = {}
if (this.mediaType === 'book') {
jsonObject = {
absId: this.id,
tags: mediaExpanded.tags || [],
chapters: mediaExpanded.chapters?.map((c) => ({ ...c })) || [],
title: mediaExpanded.title,
@ -598,6 +599,7 @@ class LibraryItem extends Model {
}
} else {
jsonObject = {
absId: this.id,
tags: mediaExpanded.tags || [],
title: mediaExpanded.title,
author: mediaExpanded.author,