imdb

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: Unlicense Imports: 10 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 (*IMDB) DownloadPosters

func (db *IMDB) DownloadPosters(movieList []string, targetDir string, progress webget.ProgressHandler)

func (*IMDB) FindPosters

func (db *IMDB) FindPosters(movieList []string) []string

func (*IMDB) GetMovieTitle

func (db *IMDB) GetMovieTitle(imdbURL string) (string, string)

returns title ID and title

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)

type PosterProgress

type PosterProgress struct {
	Verbose bool
}

func (PosterProgress) Done

func (p PosterProgress) Done(sourceURL string)

func (PosterProgress) Start

func (p PosterProgress) Start(sourceURL string)

func (PosterProgress) Update

func (p PosterProgress) Update(sourceURL string, percentage float64, bytesRead, contentLength int64)

Jump to

Keyboard shortcuts

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