omdb

package
v0.0.0-...-5b5ccd6 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterFlags

func RegisterFlags(f []cli.Flag) []cli.Flag

Types

type Api

type Api struct {
	// contains filtered or unexported fields
}

func New

func New(c *cli.Context, cl *http.Client) *Api

func (*Api) SearchByTitleAndYear

func (api *Api) SearchByTitleAndYear(ctx context.Context, title string, year *int16, omdbType OmdbType) (*OmdbResponse, error)

type OmdbResponse

type OmdbResponse struct {
	ImdbID string         `json:"imdbID"`
	Type   OmdbType       `json:"Type"`
	Raw    map[string]any `json:"-"`
}

type OmdbType

type OmdbType string
const (
	OmdbTypeMovie   OmdbType = "movie"
	OmdbTypeSeries  OmdbType = "series"
	OmdbTypeEpisode OmdbType = "episode"
)

func (OmdbType) String

func (t OmdbType) String() string

Jump to

Keyboard shortcuts

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