From b60bd539f6a67595b8515c2c0f82bc7b308a744b Mon Sep 17 00:00:00 2001 From: Brian Doherty Date: Wed, 16 Aug 2023 13:33:09 -0500 Subject: [PATCH] Parse podcast description from HTML to text just as with episodes. --- 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 eb1252d3..5f50597c 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",