hibiki

package
v0.0.0-...-b1f2762 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Headers map[string]string
	FeedURL string
	ShowURL string
}

func New

func New() *Client

func (*Client) GetFeed

func (c *Client) GetFeed() (feed []FeedEntry, err error)

func (*Client) GetShow

func (c *Client) GetShow(showID string) (show Show, err error)

func (*Client) GetShowList

func (c *Client) GetShowList() (showList []string, err error)

type Episode

type Episode struct {
	Id   int    `json:"id"`
	Name string `json:"name"`

	UpdatedAt string `json:"updated_at"`

	Video           *EpisodeMedia `json:"video"`
	AdditionalVideo *EpisodeMedia `json:"additional_video"`
}

type EpisodeMedia

type EpisodeMedia struct {
	Id        int `json:"id"`
	MediaType int `json:"media_type"`
	URL       *string

	IsAdditional bool
}

type FeedEntry

type FeedEntry struct {
	ShowID string `json:"access_id"`
}

type Show

type Show struct {
	AccessId string `json:"access_id"`
	Name     string `json:"name"`
	Casts    []struct {
		Name     string  `json:"name"`
		RollName *string `json:"roll_name"`
	} `json:"casts"`
	PcImageUrl string  `json:"pc_image_url"`
	SpImageUrl string  `json:"sp_image_url"`
	Episode    Episode `json:"episode"`
}

Jump to

Keyboard shortcuts

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