Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PodcastPlayOrderRandom bool PodcastPlayerOrderOldest bool )
View Source
var MediaTypeMap = map[MediaType]Media{ // contains filtered or unexported fields }
View Source
var Shuffled bool
Functions ¶
func HydratePodcastCache ¶
func HydratePodcastCache()
HydratePodcastCache populates the default podcast cache with a local file
Types ¶
type Decoder ¶
type Decoder interface {
Decode(rc io.ReadCloser) (s beep.StreamSeekCloser, format beep.Format, err error)
}
Decoder is an interface to the beep package.
type LocalFile ¶
type Podcast ¶
type Podcast struct { Name string URL string Player streamPlayer PlayOrder PlayOrder EpisodeGuid string TTL time.Duration // cache expiration time }
func (*Podcast) Get ¶
Get parses a podcast feed and sets the most recent episode as the Podcast content.
type Scheduler ¶
type Scheduler struct { Content struct { // Expire time for played podcast cache PlayedPodcastTTL string // Duration between the loop pausing and checking the content against the schedule. CheckInterval string Programs []*Program } }
func NewScheduler ¶
Click to show internal directories.
Click to hide internal directories.