mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-02-04 17:29:39 +00:00
Add id to the metadata json and use it when moving files if ino cannot be matched
This commit is contained in:
parent
8758c62ae2
commit
6ac0a8a678
4 changed files with 17 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue