podcast

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: GPL-3.0 Imports: 18 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, tagReader tagcommon.Reader) *Podcasts

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) DownloadTick added in v0.16.3

func (p *Podcasts) DownloadTick() error

func (*Podcasts) GetNewestPodcastEpisodes

func (p *Podcasts) GetNewestPodcastEpisodes(count 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) RefreshPodcast added in v0.16.3

func (p *Podcasts) RefreshPodcast(podcast *db.Podcast, items []*gofeed.Item) 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