moviedb

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMDb

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

IMDb interfaces with the imdb.com movie database.

func NewIMDb

func NewIMDb() *IMDb

NewIMDb returns a new IMDb.

func (*IMDb) SearchMovies added in v0.4.0

func (s *IMDb) SearchMovies(q string) ([]*MovieMetadata, error)

SearchMovies implements MovieDB.

type MovieDB added in v0.4.0

type MovieDB interface {
	// SearchMovies returns a list of results matching query q (typically the
	// movie title) ordered by relevance.
	SearchMovies(q string) ([]*MovieMetadata, error)
}

MovieDB is the interface implemented by movie databases such as IMDb.

type MovieMetadata added in v0.4.0

type MovieMetadata struct {
	Name string
	Year int

	// ID is the movie database identifier, e.g., "imdb-tt0118715".
	ID string
}

MovieMetadata is metadata about a movie.

It contains the fields necessary for Plex's file naming scheme: https://support.plex.tv/articles/naming-and-organizing-your-movie-media-files

Jump to

Keyboard shortcuts

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