podcasts

package
v0.15.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoAudioInFeedItem = errors.New("no audio in feed item")

Functions

This section is empty.

Types

type Podcasts

type Podcasts struct {
	// contains filtered or unexported fields
}

func New

func New(db *db.DB, base string, tagger tags.Reader) *Podcasts

func (*Podcasts) AddEpisode

func (p *Podcasts) AddEpisode(podcastID int, item *gofeed.Item) (*db.PodcastEpisode, error)

func (*Podcasts) AddNewEpisodes

func (p *Podcasts) AddNewEpisodes(podcast *db.Podcast, items []*gofeed.Item) error

func (*Podcasts) AddNewPodcast

func (p *Podcasts) AddNewPodcast(rssURL string, feed *gofeed.Feed) (*db.Podcast, error)

func (*Podcasts) DeletePodcast

func (p *Podcasts) DeletePodcast(podcastID int) error

func (*Podcasts) DeletePodcastEpisode

func (p *Podcasts) DeletePodcastEpisode(podcastEpisodeID int) error

func (*Podcasts) DownloadEpisode

func (p *Podcasts) DownloadEpisode(episodeID int) error

func (*Podcasts) DownloadPodcastAll

func (p *Podcasts) DownloadPodcastAll(podcastID int) error

func (*Podcasts) GetNewestPodcastEpisodes

func (p *Podcasts) GetNewestPodcastEpisodes(count int) ([]*db.PodcastEpisode, error)

func (*Podcasts) GetPodcastEpisodes

func (p *Podcasts) GetPodcastEpisodes(podcastID int) ([]*db.PodcastEpisode, error)

func (*Podcasts) GetPodcastOrAll

func (p *Podcasts) GetPodcastOrAll(id int, includeEpisodes bool) ([]*db.Podcast, error)

func (*Podcasts) PurgeOldPodcasts

func (p *Podcasts) PurgeOldPodcasts(maxAge time.Duration) error

func (*Podcasts) RefreshPodcasts

func (p *Podcasts) RefreshPodcasts() error

func (*Podcasts) SetAutoDownload

func (p *Podcasts) SetAutoDownload(podcastID int, setting db.PodcastAutoDownload) error

Jump to

Keyboard shortcuts

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