parse podcast description from HTML to text just as with episodes (#354)

This commit is contained in:
brian-doherty
2023-08-16 14:13:39 -05:00
committed by GitHub
parent 5700558a3f
commit 8309425c9e

View File

@@ -6,11 +6,15 @@ import (
)
func NewPodcastChannel(p *db.Podcast) *PodcastChannel {
desc, err := html2text.FromString(p.Description, html2text.Options{TextOnly: true})
if (err != nil) {
desc = ""
}
ret := &PodcastChannel{
ID: p.SID(),
OriginalImageURL: p.ImageURL,
Title: p.Title,
Description: p.Description,
Description: desc,
URL: p.URL,
CoverArt: p.SID(),
Status: "skipped",