tmdb

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package tmdb provides a client for The Movie Database (TMDB) API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(flags *pflag.FlagSet) (provider.Interface, error)

New return a new tmdb client.

func Provider added in v0.2.0

func Provider() provider.Provider

Provider returns the tmdb provider with its flags

Types

type Client

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

Client to communicate with tmdb api.

func (*Client) Name added in v0.2.0

func (c *Client) Name() string

func (*Client) SearchMovie added in v0.2.0

func (c *Client) SearchMovie(req provider.Request) (provider.ResponseMovie, float64, error)

SearchMovie search for movies using query and year (if provided). see: https://developer.themoviedb.org/reference/search-movie

func (*Client) SearchTV added in v0.2.0

func (c *Client) SearchTV(req provider.Request) (provider.ResponseTV, float64, error)

SearchTV search for tv shows using query and year (if provided). see: https://developer.themoviedb.org/reference/search-tv

Directories

Path Synopsis
Copied from https://github.com/gohugoio/httpcache/blob/d62773ca3b8d72fe53e88e00d3831ccaca8b1ffc/httpcache.go Changed:
Copied from https://github.com/gohugoio/httpcache/blob/d62773ca3b8d72fe53e88e00d3831ccaca8b1ffc/httpcache.go Changed:

Jump to

Keyboard shortcuts

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