feed

package
v0.0.0-...-3b91f4c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeedEpisodesToFetch

type FeedEpisodesToFetch struct {
	Episodes  []*RssItem
	FeedTitle string
}

type FeedFetcher

type FeedFetcher struct {
}

func (*FeedFetcher) FetchEpisodes

func (f *FeedFetcher) FetchEpisodes(downloadDirectory string, fromTime time.Time, toTime time.Time, feedUrls []string)

type FeedReader

type FeedReader struct {
}

func (*FeedReader) GetFeed

func (r *FeedReader) GetFeed(feedUrl string) (*RssFeed, error)

type RssFeed

type RssFeed struct {
	XMLName xml.Name   `xml:"rss"`
	Title   string     `xml:"channel>title"`
	Items   []*RssItem `xml:"channel>item"`
}

type RssItem

type RssItem struct {
	XMLName   xml.Name         `xml:"item"`
	Title     string           `xml:"title"`
	PubDate   string           `xml:"pubDate"`
	Enclosure RssItemEnclosure `xml:"enclosure"`
}

type RssItemEnclosure

type RssItemEnclosure struct {
	XMLName xml.Name `xml:"enclosure"`
	Url     string   `xml:"url,attr"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL