api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Caption

type Caption struct {
	Episode   Episode    `json:"Episode"`
	Frame     Frame      `json:"Frame"`
	Subtitles []Subtitle `json:"Subtitles"`
	Nearby    []Frame    `json:"Nearby"`
}

type Episode

type Episode struct {
	ID              int    `json:"Id"`
	Key             string `json:"Key"`
	Season          int    `json:"Season"`
	EpisodeNumber   int    `json:"EpisodeNumber"`
	Title           string `json:"Title"`
	Director        string `json:"Director"`
	Writer          string `json:"Writer"`
	OriginalAirDate string `json:"OriginalAirDate"`
	WikiLink        string `json:"WikiLeak"`
}

type Frame

type Frame struct {
	ID        int    `json:"Id"`
	Episode   string `json:"Episode"`
	Timestamp int    `json:"Timestamp"`
}

Frames Holds data about a Frinkiac (or Morbotron) search

func (*Frame) GetCaptionPhotoUrl

func (f *Frame) GetCaptionPhotoUrl(caption string) string

func (*Frame) GetPhotoUrl

func (f *Frame) GetPhotoUrl() string

type FrinkiacClient

type FrinkiacClient struct{}

func NewFrinkiacClient

func NewFrinkiacClient() *FrinkiacClient

func (*FrinkiacClient) GetCaption

func (f *FrinkiacClient) GetCaption(episode string, timestamp string) (Caption, error)

func (*FrinkiacClient) Search

func (f *FrinkiacClient) Search(query string) ([]*Frame, error)

type Subtitle

type Subtitle struct {
	ID                      int    `json:"Id"`
	RepresentativeTimestamp string `json:"RepresentativeTimestamp"`
	Episode                 string `json:"Episode"`
	StartTimestamp          string `json:"StartTimestamp"`
	EndTimestamp            string `json:"EndTimestamp"`
	Content                 string `json:"Content"`
	Language                string `json:"Language"`
}

Jump to

Keyboard shortcuts

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