movie

package
v0.0.0-...-f2a2198 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIMDbURLMissing = errors.New("Can not find IMDb links on the page")

ErrIMDbURLMissing is error of can not find IMDb URL

Functions

func InitTMDb

func InitTMDb()

InitTMDb init TMDb API

func Search(keyword string, limit int) (*[]Movie, error)

Search searches movies on TMDb

func SearchIMDbID

func SearchIMDbID(text string) ([]string, error)

SearchIMDbID finds IMDb IDs in given text

Types

type Movie

type Movie struct {
	TMDbID  int
	TMDbURL string
	Title   string
	Date    string
	// contains filtered or unexported fields
}

Movie object

func New

func New() Movie

New returns a new Movie

func (*Movie) FetchFromURL

func (m *Movie) FetchFromURL(url string) error

FetchFromURL fetches movie IMDb from a URL

func (Movie) IMDbID

func (m Movie) IMDbID() string

IMDbID returns IMDb ID of a Movie

Jump to

Keyboard shortcuts

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