mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-02-01 00:18:14 +01:00
Update descriptionPlain to only be available in json expanded
This commit is contained in:
parent
286185329d
commit
922a5039ce
@ -344,7 +344,6 @@ class Book extends Model {
|
|||||||
publishedDate: this.publishedDate,
|
publishedDate: this.publishedDate,
|
||||||
publisher: this.publisher,
|
publisher: this.publisher,
|
||||||
description: this.description,
|
description: this.description,
|
||||||
descriptionPlain: this.description ? htmlSanitizer.stripAllTags(this.description) : null,
|
|
||||||
isbn: this.isbn,
|
isbn: this.isbn,
|
||||||
asin: this.asin,
|
asin: this.asin,
|
||||||
language: this.language,
|
language: this.language,
|
||||||
@ -544,7 +543,6 @@ class Book extends Model {
|
|||||||
publishedDate: this.publishedDate,
|
publishedDate: this.publishedDate,
|
||||||
publisher: this.publisher,
|
publisher: this.publisher,
|
||||||
description: this.description,
|
description: this.description,
|
||||||
descriptionPlain: this.description ? htmlSanitizer.stripAllTags(this.description) : null,
|
|
||||||
isbn: this.isbn,
|
isbn: this.isbn,
|
||||||
asin: this.asin,
|
asin: this.asin,
|
||||||
language: this.language,
|
language: this.language,
|
||||||
@ -567,7 +565,6 @@ class Book extends Model {
|
|||||||
publishedDate: this.publishedDate,
|
publishedDate: this.publishedDate,
|
||||||
publisher: this.publisher,
|
publisher: this.publisher,
|
||||||
description: this.description,
|
description: this.description,
|
||||||
descriptionPlain: this.description ? htmlSanitizer.stripAllTags(this.description) : null,
|
|
||||||
isbn: this.isbn,
|
isbn: this.isbn,
|
||||||
asin: this.asin,
|
asin: this.asin,
|
||||||
language: this.language,
|
language: this.language,
|
||||||
@ -583,6 +580,7 @@ class Book extends Model {
|
|||||||
oldMetadataJSON.authorNameLF = this.authorNameLF
|
oldMetadataJSON.authorNameLF = this.authorNameLF
|
||||||
oldMetadataJSON.narratorName = (this.narrators || []).join(', ')
|
oldMetadataJSON.narratorName = (this.narrators || []).join(', ')
|
||||||
oldMetadataJSON.seriesName = this.seriesName
|
oldMetadataJSON.seriesName = this.seriesName
|
||||||
|
oldMetadataJSON.descriptionPlain = this.description ? htmlSanitizer.stripAllTags(this.description) : null
|
||||||
return oldMetadataJSON
|
return oldMetadataJSON
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user