radiko

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StationIDUrl string = "https://radiko.jp/v3/station/region/full.xml"
	Auth1_Url    string = "https://radiko.jp/v2/api/auth1"
	Auth2_Url    string = "https://radiko.jp/v2/api/auth2"
	AuthKey      string = "bcd151073c03b352e1ef2fd66c32209da9ca0afa"
)

Variables

This section is empty.

Functions

func Auth

func Auth() string

func GetResponse

func GetResponse(url string) (response []byte, err error)

Types

type ProgramInfo

type ProgramInfo struct {
	XMLName xml.Name `xml:"prog"`
	Start   int      `xml:"ftl,attr"`
	End     int      `xml:"tol,attr"`
	Title   string   `xml:"title"`
}

type Programs

type Programs struct {
	XMLName  xml.Name      `xml:"radiko"`
	Programs []ProgramInfo `xml:"stations>station>progs>prog"`
	Day      int
}

func GetPrograms

func GetPrograms(station string, app *tview.Application) *Programs

type StationInfo

type StationInfo struct {
	XMLName xml.Name `xml:"station"`
	Name    string   `xml:"name"`
	ID      string   `xml:"id"`
}

func ParseStationIDPage

func ParseStationIDPage() []StationInfo

type Stations

type Stations struct {
	XMLName  xml.Name      `xml:"stations"`
	Stations []StationInfo `xml:"station"`
}

type Stream

type Stream struct {
	ID     string
	Token  string
	Area   string
	Player *exec.Cmd
	Cancel bool
}

func (*Stream) StartStream

func (s *Stream) StartStream(app *tview.Application, updateProgs func())

func (*Stream) Stop

func (s *Stream) Stop()

Jump to

Keyboard shortcuts

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