imdb

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: Unlicense Imports: 8 Imported by: 0

README

imdb-poster

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorCollector

type ErrorCollector struct {
	Errors []error
	// contains filtered or unexported fields
}

func (*ErrorCollector) Add

func (c *ErrorCollector) Add(err error)

type IMDB

type IMDB struct {
	AllPosterResolutions bool
	WaitBetweenRequests  time.Duration
	Verbose              bool
}

func NewIMDB added in v0.0.3

func NewIMDB(allPosterResolutions bool) *IMDB

func (*IMDB) FetchPoster added in v0.0.3

func (db *IMDB) FetchPoster(movie string) []string

func (*IMDB) FetchTitle added in v0.0.3

func (db *IMDB) FetchTitle(movie string) (string, string)

fetch the movie title

func (*IMDB) TitleIDFromURL added in v0.0.3

func (db *IMDB) TitleIDFromURL(imdbURL string) (string, bool)

get the title ID from an IMDB URL

func (*IMDB) URLFromSource added in v0.0.3

func (db *IMDB) URLFromSource(source string) (string, bool)

type Poster

type Poster struct {
	MovieURL string
	ImageURL string
	Index    int
}

type PosterCollector

type PosterCollector struct {
	Posters []*Poster
	// contains filtered or unexported fields
}

func (*PosterCollector) Add

func (c *PosterCollector) Add(poster *Poster)

Jump to

Keyboard shortcuts

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