kaoriData

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: MIT Imports: 16 Imported by: 1

README

KaoriData

Common data structures for multiple programs.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeEpNumber added in v0.1.2

func NormalizeEpNumber(eps []float64) (name string)

Types

type Anime

type Anime struct {
	Id       string     `firestore:"-"`
	Name     string     `firestore:"name"`
	Episodes []*Episode `firestore:"episodes"`
}

func NewAnime

func NewAnime() *Anime

func (*Anime) AppendFile added in v0.1.3

func (a *Anime) AppendFile(filePath string) error

func (*Anime) GetAnimeEpisodeDb added in v0.1.8

func (a *Anime) GetAnimeEpisodeDb(c *firestore.Client, ctx context.Context) error

func (*Anime) GetAnimeFromDb added in v0.1.7

func (a *Anime) GetAnimeFromDb(c *firestore.Client, ctx context.Context) error

func (*Anime) GetAnimeInfoFromDb added in v0.1.7

func (a *Anime) GetAnimeInfoFromDb(c *firestore.Client, ctx context.Context) error

func (*Anime) SendToDb

func (a *Anime) SendToDb(c *firestore.Client, ctx context.Context) error

func (*Anime) SendToKaori

func (a *Anime) SendToKaori(kaoriUrl, token string) error

type Episode

type Episode struct {
	Number string `firestore:"number"`
	Title  string
	Videos []*Video
}

func NewEpisode

func NewEpisode() *Episode

type InfoQuality added in v0.0.22

type InfoQuality struct {
	Width  int `firestore:"width"`
	Height int `firestore:"height"`
}
type StreamLink struct {
	Link     string  `firestore:"link"`
	Fansub   string  `firestore:"fansub"`
	Duration float64 `firestore:"duration"`
	Bitrate  int     `firestore:"bitrate"`
}

type Video added in v0.1.0

type Video struct {
	Language   string
	Modality   string
	Quality    *InfoQuality
	Server     string
	StreamLink *StreamLink
}

func NewVideo added in v0.1.0

func NewVideo() *Video

func (*Video) GetQuality added in v0.1.0

func (v *Video) GetQuality(link string) error

Jump to

Keyboard shortcuts

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