mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-05 12:31:48 +02:00
Add:Full podcast episode description parsed and viewable in modal #492
This commit is contained in:
@@ -81,9 +81,16 @@ function extractEpisodeData(item) {
|
||||
}
|
||||
}
|
||||
|
||||
// Full description with html
|
||||
if (item['content:encoded']) {
|
||||
const rawDescription = (extractFirstArrayItem(item, 'content:encoded') || '').trim()
|
||||
episode.description = htmlSanitizer.sanitize(rawDescription)
|
||||
}
|
||||
|
||||
// Supposed to be the plaintext description but not always followed
|
||||
if (item['description']) {
|
||||
const rawDescription = extractFirstArrayItem(item, 'description') || ''
|
||||
episode.description = htmlSanitizer.sanitize(rawDescription)
|
||||
if (!episode.description) episode.description = htmlSanitizer.sanitize(rawDescription)
|
||||
episode.descriptionPlain = htmlSanitizer.stripAllTags(rawDescription)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user