podcast

package
v0.21.3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package podcast provides support for all podcast/rss media.

Index

Constants

View Source
const (
	FieldAuthor      = "author"
	FieldDate        = "date"
	FieldDescription = "desc"
	FieldSeries      = "series"
	FieldTitle       = "title"
)

Variables

View Source
var (
	ErrSeriesNotFound  = errors.New("series not found")
	ErrEpisodeNotFound = errors.New("episode not found")
)

Functions

This section is empty.

Types

type Podcast

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

func NewPodcast

func NewPodcast(config *config.Config) *Podcast

func (*Podcast) Close

func (p *Podcast) Close()

func (*Podcast) EpisodeImage

func (p *Podcast) EpisodeImage(episode Episode) string

func (*Podcast) EpisodeURL

func (p *Podcast) EpisodeURL(e Episode) *url.URL

func (*Podcast) Episodes

func (p *Podcast) Episodes(series Series) []Episode

func (*Podcast) FindEpisode

func (p *Podcast) FindEpisode(identifier string) (Episode, error)

func (*Podcast) FindSeries

func (p *Podcast) FindSeries(identifier string) (Series, error)

func (*Podcast) HasPodcasts

func (p *Podcast) HasPodcasts() bool

func (*Podcast) HasSubscriptions added in v0.11.8

func (p *Podcast) HasSubscriptions(userid string) bool

func (*Podcast) LookupEID

func (p *Podcast) LookupEID(eid string) (Episode, error)

func (*Podcast) LookupEpisode

func (p *Podcast) LookupEpisode(id int) (Episode, error)

func (*Podcast) LookupSID

func (p *Podcast) LookupSID(sid string) (Series, error)

func (*Podcast) LookupSeries

func (p *Podcast) LookupSeries(id int) (Series, error)

func (*Podcast) Open

func (p *Podcast) Open() (err error)

func (*Podcast) RecentEpisodes

func (p *Podcast) RecentEpisodes() []Episode

func (*Podcast) RecentEpisodesFor added in v0.11.8

func (p *Podcast) RecentEpisodesFor(userid string) []Episode

func (*Podcast) RecentSeries

func (p *Podcast) RecentSeries() []Series

func (*Podcast) RecentSeriesFor added in v0.11.8

func (p *Podcast) RecentSeriesFor(userid string) []Series

func (*Podcast) Search

func (p *Podcast) Search(q string, limit ...int) (series []Series, episodes []Episode)

func (*Podcast) Series

func (p *Podcast) Series() []Series

func (*Podcast) SeriesCount

func (p *Podcast) SeriesCount() int64

func (*Podcast) SeriesFor added in v0.11.8

func (p *Podcast) SeriesFor(userid string) []Series

func (*Podcast) SeriesImage

func (p *Podcast) SeriesImage(series Series) string

func (*Podcast) Subscribe added in v0.11.8

func (p *Podcast) Subscribe(sid, userid string) error

func (*Podcast) SubscriptionsFor added in v0.11.8

func (p *Podcast) SubscriptionsFor(userid string) []Subscription

func (*Podcast) Sync

func (p *Podcast) Sync() error

func (*Podcast) SyncSince

func (p *Podcast) SyncSince(lastSync time.Time) error

func (*Podcast) Unsubscribe added in v0.11.8

func (p *Podcast) Unsubscribe(sid, userid string) error

Jump to

Keyboard shortcuts

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