mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-20 07:31:34 +01:00
Update podcastUtils to sanitize episode subtitle from rss feed
This commit is contained in:
1 parent
09fa0b38f5
commit
b27f21fd95
1 file changed
+4
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user