Skip to content

Commit

Permalink
Parse podcast description from HTML to text just as with episodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-doherty committed Aug 16, 2023
1 parent 5700558 commit b60bd53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/ctrlsubsonic/spec/construct_podcast.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b60bd53

Please sign in to comment.