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)},
},
}
}

@ -18,14 +18,16 @@ type RssPodcastData struct {
Channel RssChannel `xml:"channel"`
}
type RssChannel struct {
Text string `xml:",chardata"`
Language string `xml:"language"`
Link string `xml:"link"`
Title string `xml:"title"`
Description string `xml:"description"`
Type string `xml:"type"`
Summary string `xml:"summary"`
Item []RssItem `xml:"item"`
Text string `xml:",chardata"`
Language string `xml:"language"`
Link string `xml:"link"`
Title string `xml:"title"`
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