podcast

package module
v0.0.0-...-4e7cc04 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Podcast

type Podcast struct {
	URL *url.URL
	// contains filtered or unexported fields
}

func NewPodcast

func NewPodcast(u string) (*Podcast, error)

func (*Podcast) Episodes

func (p *Podcast) Episodes() []*PodcastEpisode

func (*Podcast) GetFeed

func (p *Podcast) GetFeed() *gofeed.Feed

func (*Podcast) Latest

func (p *Podcast) Latest() *PodcastEpisode

func (*Podcast) MarkListened

func (p *Podcast) MarkListened(ep *PodcastEpisode)

func (*Podcast) Refresh

func (p *Podcast) Refresh() error

type PodcastEpisode

type PodcastEpisode struct {
	*gofeed.Item
}

func (*PodcastEpisode) AudioURL

func (ep *PodcastEpisode) AudioURL() string

func (*PodcastEpisode) Duration

func (ep *PodcastEpisode) Duration() int

func (*PodcastEpisode) Reader

func (ep *PodcastEpisode) Reader() (io.ReadCloser, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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