Update descriptionPlain to only be available in json expanded

This commit is contained in:
advplyr 2025-01-25 13:30:30 -06:00
parent 286185329d
commit 922a5039ce

View File

@ -344,7 +344,6 @@ class Book extends Model {
publishedDate: this.publishedDate,
publisher: this.publisher,
description: this.description,
descriptionPlain: this.description ? htmlSanitizer.stripAllTags(this.description) : null,
isbn: this.isbn,
asin: this.asin,
language: this.language,
@ -544,7 +543,6 @@ class Book extends Model {
publishedDate: this.publishedDate,
publisher: this.publisher,
description: this.description,
descriptionPlain: this.description ? htmlSanitizer.stripAllTags(this.description) : null,
isbn: this.isbn,
asin: this.asin,
language: this.language,
@ -567,7 +565,6 @@ class Book extends Model {
publishedDate: this.publishedDate,
publisher: this.publisher,
description: this.description,
descriptionPlain: this.description ? htmlSanitizer.stripAllTags(this.description) : null,
isbn: this.isbn,
asin: this.asin,
language: this.language,
@ -583,6 +580,7 @@ class Book extends Model {
oldMetadataJSON.authorNameLF = this.authorNameLF
oldMetadataJSON.narratorName = (this.narrators || []).join(', ')
oldMetadataJSON.seriesName = this.seriesName
oldMetadataJSON.descriptionPlain = this.description ? htmlSanitizer.stripAllTags(this.description) : null
return oldMetadataJSON
}