moviedb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: MIT Imports: 3 Imported by: 0

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 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