mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-05-12 22:41:29 +00:00
Update podcastUtils to sanitize episode subtitle from rss feed
This commit is contained in:
parent
09fa0b38f5
commit
b27f21fd95
1 changed files with 4 additions and 0 deletions
|
|
@ -217,6 +217,10 @@ function extractEpisodeData(item) {
|
|||
episode[cleanKey] = extractFirstArrayItemString(item, key)
|
||||
})
|
||||
|
||||
if (episode.subtitle) {
|
||||
episode.subtitle = htmlSanitizer.sanitize(episode.subtitle.trim())
|
||||
}
|
||||
|
||||
// Extract psc:chapters if duration is set
|
||||
episode.durationSeconds = episode.duration ? timestampToSeconds(episode.duration) : null
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue