Documentation ¶
Index ¶
- func Getmoviemetadata(movie *database.Dbmovie, refresh bool)
- func Getmoviemetatitles(movie *database.Dbmovie, cfgp *config.MediaTypeConfig)
- func MovieGetMetadata(movie *database.Dbmovie, queryimdb bool, querytmdb bool, queryomdb bool, ...)
- func SerieGetMetadata(serie *database.Dbserie, language string, ...) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Getmoviemetadata ¶
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.