Merge branch 'sentriz:master' into ldap_auth

This commit is contained in:
Daniel
2023-09-05 02:53:33 +00:00
committed by GitHub
5 changed files with 165 additions and 5 deletions

No files matched your search

@@ -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",