From 8309425c9e385f491b6d6a38bcf9fefcac82da44 Mon Sep 17 00:00:00 2001 From: brian-doherty <76168809+brian-doherty@users.noreply.github.com> Date: Wed, 16 Aug 2023 14:13:39 -0500 Subject: [PATCH] parse podcast description from HTML to text just as with episodes (#354) --- server/ctrlsubsonic/spec/construct_podcast.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/ctrlsubsonic/spec/construct_podcast.go b/server/ctrlsubsonic/spec/construct_podcast.go index eb1252d..5f50597 100644 --- a/server/ctrlsubsonic/spec/construct_podcast.go +++ b/server/ctrlsubsonic/spec/construct_podcast.go @@ -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",