Documentation
¶
Overview ¶
Package tmdb implements a client for the TMDB API https://developer.themoviedb.org/docs/getting-started
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a profile HTTP client that wraps the base HTTP client
func New ¶
New creates a new profile HTTP client with the given base URL and options. The url parameter should point to the profile API endpoint, e.g. "http://localhost:8080/api".
func (*Client) SearchMovies ¶
func (c *Client) SearchMovies(ctx context.Context, req schema.MovieSearchRequest) (*schema.MovieSearchResponse, error)
type Query ¶
type Query struct {
Name string
Year int // 0 if no year was found
Season int // 0 unless Episode is also set
Episode int // 0 unless this looks like a TV episode
}
Query is a search query extracted from a media file's path: the title to search for, its release year if present, and (for a TV episode) its season/episode number.
func ExtractQuery ¶
ExtractQuery derives a search query - title, year, and (for a TV episode) season/episode - from a media file's path.
Click to show internal directories.
Click to hide internal directories.