Documentation
¶
Overview ¶
Package moviedb defines the MovieDB interface for movie metadata lookups and the MovieMetadata type used to represent results.
The only current implementation is an IMDb scraper (NewIMDb), which searches IMDb and returns metadata in the format required by Plex's file naming convention.
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 (*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
Click to show internal directories.
Click to hide internal directories.