metadata

package
v0.0.0-...-4973d3c Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Getmoviemetadata

func Getmoviemetadata(movie *database.Dbmovie, refresh bool)

Getmoviemetadata retrieves metadata for the given movie from the configured priority of metadata sources, refreshing cached data if refresh is true.

func Getmoviemetatitles

func Getmoviemetatitles(movie *database.Dbmovie, cfgp *config.MediaTypeConfig)

Getmoviemetatitles retrieves alternate titles for a movie from various metadata sources like IMDb, TMDb, and Trakt based on configured settings. It adds any unique titles to the database.

func MovieGetMetadata

func MovieGetMetadata(movie *database.Dbmovie, queryimdb bool, querytmdb bool, queryomdb bool, querytrakt bool)

movieGetMetadata retrieves metadata for the given movie from multiple sources based on the input flags. It queries IMDb, TMDb, OMDb and Trakt APIs based on the queryimdb, querytmdb, queryomdb and querytrakt flags passed in. Results from each source are cached and merged into the movie struct.

func SerieGetMetadata

func SerieGetMetadata(serie *database.Dbserie, language string, querytmdb, querytrakt, overwrite bool, aliases []string) []string

It returns a slice of aliases after querying the different metadata sources. The function handles errors from the API calls and logs them. It progressively queries more APIs, using data from previous ones. Overall it populates serie metadata like status, first air date, network etc. from TVDB, and collects aliases from Trakt using the IMDB ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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