tmdb_api

package
v0.50.3 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImdbID = "imdb_id"
	TmdbID = "tmdb_id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConvertIdResult

type ConvertIdResult struct {
	ImdbID string `json:"imdb_id"`
	TmdbID string `json:"tmdb_id"`
	TvdbID string `json:"tvdb_id"`
}

type Req

type Req struct {
	ProxySettings settings.ProxySettings `json:"proxy_settings"  binding:"required"`
	ApiKey        string                 `json:"api_key"`
}

type TmdbApi

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

func NewTmdbHelper

func NewTmdbHelper(l *logrus.Logger, apiKey string) (*TmdbApi, error)

func (*TmdbApi) Alive

func (t *TmdbApi) Alive() bool

func (*TmdbApi) ConvertId

func (t *TmdbApi) ConvertId(iD string, idType string, isMovieOrSeries bool) (convertIdResult *ConvertIdResult, err error)

ConvertId 目前仅仅支持 TMDB ID 转 IMDB ID

func (*TmdbApi) GetInfo

func (t *TmdbApi) GetInfo(iD string, idType string, isMovieOrSeries, isQueryEnOrCNInfo bool) (outFindByID *tmdb.FindByID, err error)

GetInfo 获取视频的信息 idType: imdb_id or tmdb_id

Jump to

Keyboard shortcuts

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