better rss feeds

pull/142/head
Akhil Gupta 3 years ago
parent 180aeceb0e
commit accd7fe166

@ -442,7 +442,9 @@ func createRss(items []db.PodcastItem, title, description string, c *gin.Context
Title: title,
Description: description,
Summary: description,
Author: "Podgrab Aggregation",
Link: fmt.Sprintf("%s://%s/allTags", url.Scheme, url.Host),
Image: model.RssItemImage{Text: title, Href: fmt.Sprintf("%s://%s/webassets/blank.png", url.Scheme, url.Host)},
},
}
}

@ -25,7 +25,9 @@ type RssChannel struct {
Description string `xml:"description"`
Type string `xml:"type"`
Summary string `xml:"summary"`
Image RssItemImage `xml:"image"`
Item []RssItem `xml:"item"`
Author string `xml:"author"`
}
type RssItem struct {
Text string `xml:",chardata"`

Loading…
Cancel
Save