mirror of
https://github.com/nkanaev/yarr.git
synced 2025-09-17 20:00:14 +00:00
extract thumbnails from vimeo feeds
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user