imdb

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AKA

type AKA struct {
	Title      string
	Country    string
	Language   string
	Attributes []string
}

type Candidate

type Candidate struct {
	IMDbID     int
	Title      string
	Year       int
	Type       string
	Plot       string
	PosterURL  string
	Similarity float64
}

type Client

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

func NewClient

func NewClient(httpClient *http.Client, logger api.Logger) *Client

func (*Client) GetEpisodeInfo

func (c *Client) GetEpisodeInfo(ctx context.Context, imdbID string, debug bool) (EpisodeLookup, error)

func (*Client) GetInfo

func (c *Client) GetInfo(ctx context.Context, imdbID string, manualLanguage string, debug bool) (Info, error)

func (*Client) Search

func (c *Client) Search(ctx context.Context, input SearchInput) (SearchResult, error)

type EditionDetail

type EditionDetail struct {
	DisplayName string
	Seconds     int
	Minutes     int
	Attributes  []string
}

type Episode

type Episode struct {
	ID          string
	Title       string
	ReleaseYear int
	ReleaseDate ReleaseDate
	Season      int
	EpisodeText string
}

type EpisodeLookup

type EpisodeLookup struct {
	ID              string
	Title           string
	Series          SeriesInfo
	NextEpisode     EpisodeRef
	PreviousEpisode EpisodeRef
}

type EpisodeRef

type EpisodeRef struct {
	ID    string
	Title string
}

type Info

type Info struct {
	IMDbID           string
	IMDbURL          string
	Title            string
	Country          string
	CountryList      string
	Year             int
	EndYear          int
	AKA              string
	Type             string
	RuntimeMinutes   int
	RuntimeText      string
	Cover            string
	Plot             string
	Genres           string
	Rating           float64
	RatingCount      int
	RatingText       string
	Directors        []Person
	Creators         []Person
	Writers          []Person
	Stars            []Person
	Editions         []string
	EditionDetails   map[string]EditionDetail
	Akas             []AKA
	Episodes         []Episode
	SeasonsSummary   []SeasonSummary
	SoundMixes       []string
	TVYear           int
	OriginalLanguage string
}

type Person

type Person struct {
	ID   string
	Name string
}

type ReleaseDate

type ReleaseDate struct {
	Year  int
	Month int
	Day   int
}

type SearchInput

type SearchInput struct {
	Filename          string
	SearchYear        int
	Category          string
	SecondaryTitle    string
	UntouchedFilename string
	ParsedTitle       string
	DurationMinutes   int
	Quickie           bool
	Unattended        bool
	Debug             bool
}

type SearchResult

type SearchResult struct {
	IMDbID       int
	Candidates   []Candidate
	AutoSelected bool
}

type SeasonSummary

type SeasonSummary struct {
	Season    int
	Year      int
	YearRange string
}

type SeriesInfo

type SeriesInfo struct {
	SeasonID    string
	Season      string
	SeasonText  string
	EpisodeID   string
	EpisodeText string
	SeriesID    string
	SeriesTitle string
}

Jump to

Keyboard shortcuts

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