Documentation ¶
Index ¶
- func RenderPodcasts(podcasts []Podcast, hostPrefix string) (string, error)
- type Config
- type Episode
- type Podcast
- func (p *Podcast) GetAudioFile(config Config, episodeId string) (string, error)
- func (p *Podcast) GetImage(config Config) string
- func (p *Podcast) SavePodcastMetadata(config Config) error
- func (p *Podcast) SyncPodcastEpisode(config Config, episode *Episode) error
- func (p *Podcast) Update(config Config) error
- type PodcastWatcher
- func (pw *PodcastWatcher) EnqueuePodcast(podcast Podcast)
- func (pw *PodcastWatcher) GetPodcast(id string) (*Podcast, error)
- func (pw *PodcastWatcher) ListPodcasts() ([]Podcast, error)
- func (pw *PodcastWatcher) QueueEmpty() bool
- func (pw *PodcastWatcher) RefreshPodcastMetadataCache() ([]Podcast, error)
- func (pw *PodcastWatcher) RegisterUpdating(podcast Podcast, threadIdx int) bool
- func (pw *PodcastWatcher) Run(config Config)
- func (pw *PodcastWatcher) Stop()
- func (pw *PodcastWatcher) UnRegisterUpdating(podcast Podcast)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Podcast ¶
type Podcast struct { Name string `json:"name"` Description string `json:"description"` Id string `json:"id"` ImageFile string `json:"image_file"` Episodes []*Episode `json:"episodes,omitempty"` RSSUrl string `json:"rss_url"` DisableAutoUpdate bool `json:"disable_auto_update,omitempty"` LatestEpisode *Episode `json:"latest_episode"` // contains filtered or unexported fields }
func NewPodcastObj ¶
func NewPodcastObj() Podcast
func (*Podcast) GetAudioFile ¶
func (*Podcast) SavePodcastMetadata ¶
func (*Podcast) SyncPodcastEpisode ¶
type PodcastWatcher ¶
type PodcastWatcher struct {
// contains filtered or unexported fields
}
func NewPodcastWatcher ¶
func NewPodcastWatcher(config Config) PodcastWatcher
func (*PodcastWatcher) EnqueuePodcast ¶
func (pw *PodcastWatcher) EnqueuePodcast(podcast Podcast)
func (*PodcastWatcher) GetPodcast ¶
func (pw *PodcastWatcher) GetPodcast(id string) (*Podcast, error)
func (*PodcastWatcher) ListPodcasts ¶
func (pw *PodcastWatcher) ListPodcasts() ([]Podcast, error)
func (*PodcastWatcher) QueueEmpty ¶
func (pw *PodcastWatcher) QueueEmpty() bool
func (*PodcastWatcher) RefreshPodcastMetadataCache ¶
func (pw *PodcastWatcher) RefreshPodcastMetadataCache() ([]Podcast, error)
func (*PodcastWatcher) RegisterUpdating ¶
func (pw *PodcastWatcher) RegisterUpdating(podcast Podcast, threadIdx int) bool
RegisterUpdating returns if podcast is already updating
func (*PodcastWatcher) Run ¶
func (pw *PodcastWatcher) Run(config Config)
func (*PodcastWatcher) Stop ¶
func (pw *PodcastWatcher) Stop()
func (*PodcastWatcher) UnRegisterUpdating ¶
func (pw *PodcastWatcher) UnRegisterUpdating(podcast Podcast)
Click to show internal directories.
Click to hide internal directories.