radarr

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(config *viper.Viper, logger *zerolog.Logger, restyClient *resty.Client) *Client

func (*Client) AddMovie

func (c *Client) AddMovie(movie *Movie) error

func (*Client) GetExcludedMovies

func (c *Client) GetExcludedMovies() (*[]ExcludedMovie, error)

func (*Client) GetMovies

func (c *Client) GetMovies() (*[]Movie, error)

func (*Client) LookupMovieByImdb

func (c *Client) LookupMovieByImdb(imdbId string) (*Movie, error)

func (*Client) LookupMovieByTmdb

func (c *Client) LookupMovieByTmdb(tmdbId string) (*Movie, error)

type Errors

type Errors []struct {
	PropertyName                      string        `json:"propertyName"`
	ErrorMessage                      string        `json:"errorMessage"`
	AttemptedValue                    int           `json:"attemptedValue"`
	FormattedMessageArguments         []interface{} `json:"formattedMessageArguments"`
	FormattedMessagePlaceholderValues struct {
		PropertyName  string `json:"propertyName"`
		PropertyValue int    `json:"propertyValue"`
	} `json:"formattedMessagePlaceholderValues"`
}

type ExcludedMovie

type ExcludedMovie struct {
	ID         int    `json:"id"`
	MovieTitle string `json:"movieTitle"`
	MovieYear  int    `json:"movieYear"`
	TmdbID     int    `json:"tmdbId"`
}

type Movie

type Movie struct {
	Title               string `json:"title"`
	TitleSlug           string `json:"titleSlug"`
	Overview            string `json:"overview"`
	QualityProfileID    int    `json:"qualityProfileId"`
	RootFolderPath      string `json:"rootFolderPath"`
	Year                int    `json:"year"`
	Monitored           bool   `json:"monitored"`
	ImdbId              string `json:"imdbId"`
	TmdbID              int    `json:"tmdbId"`
	MinimumAvailability string `json:"minimumAvailability"`
	Images              []struct {
		CoverType string `json:"coverType"`
		URL       string `json:"url"`
	} `json:"images"`
	IsAvailable bool                   `json:"isAvailable"`
	AddOptions  map[string]interface{} `json:"addOptions"`
}

Movie ...

Jump to

Keyboard shortcuts

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