stations

package
v0.0.0-...-bd05e56 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dlf

type Dlf struct {
	// contains filtered or unexported fields
}
var Deutschlandfunk Dlf = Dlf{"Deutschlandfunk", "https://st01.sslstream.dlf.de/dlf/01/high/aac/stream.aac", "https://www.deutschlandfunk.de/programmvorschau.281.de.html", ".dlf-contentleft", "td.description", 0, 1, 1, 0}

scrap the note on linksInSub. both pages have the record button only for some events

var DlfKultur Dlf = Dlf{"Deutschlandfunk", "https://st02.sslstream.dlf.de/dlf/02/high/aac/stream.aac", "https://www.deutschlandfunkkultur.de/programmvorschau.282.de.html", ".drk-tagesprogramm", "p.subDescription", 1, 2, 1, 0}

func (Dlf) DailyProgram

func (dlf Dlf) DailyProgram(day time.Time) ([]Event, error)

func (Dlf) GetName

func (dlf Dlf) GetName() (string, error)

func (Dlf) GetURL

func (dlf Dlf) GetURL() (string, error)

func (Dlf) Program

func (dlf Dlf) Program() ([]Event, error)

type Event

type Event struct {
	Name     string
	Info     string
	Start    time.Time
	End      time.Time
	Category string
	Url      url.URL
	CatUrl   url.URL
}

func (*Event) Format

func (ev *Event) Format(format string) string

%n: name %i: info %s(15:08) start in the golang time format %e(15:08) end in the golang time format %c: category

type Station

type Station interface {
	GetName() (string, error)
	GetURL() (string, error)
	Program() ([]Event, error)
	DailyProgram(day time.Time) ([]Event, error)
}

Jump to

Keyboard shortcuts

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