extract thumbnails from vimeo feeds

This commit is contained in:
Nazar Kanaev
2021-03-26 18:59:58 +00:00
parent ad693aaf02
commit 7dbfecdba1
3 changed files with 42 additions and 2 deletions

View File

@@ -34,6 +34,7 @@ type rssItem struct {
ItunesSubtitle string `xml:"http://www.itunes.com/dtds/podcast-1.0.dtd subtitle"`
ItunesSummary string `xml:"http://www.itunes.com/dtds/podcast-1.0.dtd summary"`
GoogleDescription string `xml:"http://www.google.com/schemas/play-podcasts/1.0 description"`
media
}
type rssLink struct {
@@ -84,6 +85,7 @@ func ParseRSS(r io.Reader) (*Feed, error) {
Title: srcitem.Title,
Content: firstNonEmpty(srcitem.ContentEncoded, srcitem.Description),
AudioURL: podcastURL,
ImageURL: srcitem.firstMediaThumbnail(),
})
}
return dstfeed, nil