importfeed

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 AllowMovieImport

func AllowMovieImport(imdb string, listcfg *config.ListsConfig) (bool, error)

AllowMovieImport checks if a movie can be imported based on the list configuration settings for minimum votes, minimum rating, excluded genres, and included genres. It returns a bool indicating if the import is allowed and an error if it is disallowed.

func Checkaddmovieentry

func Checkaddmovieentry(dbid uint, cfgplist *config.MediaListsConfig, imdb *string) error

Checkaddmovieentry checks if a movie with the given ID should be added to the given list. It handles ignore lists, replacing existing lists, and inserting into the DB if needed.

func JobImportDBSeries

func JobImportDBSeries(series *config.MainSerieConfig, idxserie int, cfgp *config.MediaTypeConfig, listid int, checkall, addnew bool)

JobImportDBSeries imports a series into the database and media lists from a SerieConfig. It handles adding new series or updating existing ones, refreshing metadata from TheTVDB, adding missing episodes, and updating the series lists table.

func JobImportDBSeriesStatic

func JobImportDBSeriesStatic(row *database.DbstaticTwoStringOneInt, cfgp *config.MediaTypeConfig, listid int, checkall, addnew bool) error

JobImportDBSeriesStatic wraps jobImportDBSeries to import a series from a DbstaticTwoStringOneInt row containing the TVDB ID and name.

func JobImportMovies

func JobImportMovies(imdb string, cfgp *config.MediaTypeConfig, listid int, addnew bool) (uint, error)

JobImportMovies imports a movie into the database and specified list given its IMDb ID. It handles checking if the movie exists, adding it if needed, updating metadata, and adding it to the target list.

func JobImportMoviesByList

func JobImportMoviesByList(list []string, idx int, cfgp *config.MediaTypeConfig, listid int, addnew bool)

JobImportMoviesByList imports or updates a list of movies in parallel. It takes a list of movie titles/IDs, an index, a media type config, a list ID, and a flag for whether to add new movies. It logs the import result for each movie.

func MovieFindDBIDByImdb

func MovieFindDBIDByImdb(imdb *string) uint

MovieFindDBIDByImdb looks up the database ID for a movie by its IMDB ID. It takes a string containing the IMDB ID and returns the uint database ID. It first checks the cache if enabled, otherwise queries the database directly. If no match is found, it returns 0.

func MovieFindImdbIDByTitle

func MovieFindImdbIDByTitle(addifnotfound bool, m *apiexternal.FileParser)

MovieFindImdbIDByTitle searches for a movie's IMDB ID by its title. It first searches the database and caches by title and slugified title. If not found, it can search external APIs based on config settings. It populates the ParseInfo struct with the found IMDB ID and other data.

func StripTitlePrefixPostfixGetQual

func StripTitlePrefixPostfixGetQual(m *database.ParseInfo, quality *config.QualityConfig)

StripTitlePrefixPostfixGetQual strips any configured prefix or suffix from the title in the provided ParseInfo, using the provided QualityConfig. It modifies the Title field on the ParseInfo in place.

Types

This section is empty.

Jump to

Keyboard shortcuts

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