radarr

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddMovieOptions

type AddMovieOptions struct {
	SearchForMovie bool `json:"searchForMovie"`
}

type AddMovieRequest

type AddMovieRequest struct {
	Title             string          `json:"title"`
	TitleSlug         string          `json:"titleSlug"`
	Images            []MovieImage    `json:"images"`
	QualityProfileID  int             `json:"qualityProfileId"`
	LanguageProfileID int             `json:"languageProfileId"`
	TMDBID            int             `json:"tmdbId"`
	RootFolderPath    string          `json:"rootFolderPath"`
	Monitored         bool            `json:"monitored"`
	AddOptions        AddMovieOptions `json:"addOptions"`
	Year              int             `json:"year"`
}

type Client

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

func NewClient

func NewClient(c Config) (*Client, error)

func (*Client) AddMovie

func (c *Client) AddMovie(m Movie, qualityProfile int, path string) (movie Movie, err error)

func (*Client) GetFolders

func (c *Client) GetFolders() ([]Folder, error)

func (*Client) GetProfile added in v0.1.1

func (c *Client) GetProfile(prfl string) ([]Profile, error)

func (*Client) SearchMovies

func (c *Client) SearchMovies(term string) ([]Movie, error)

type Config

type Config struct {
	Hostname   string `json:"hostname"`
	APIKey     string `json:"apiKey"`
	Port       int    `json:"port"`
	URLBase    string `json:"urlBase"`
	SSL        bool   `json:"ssl"`
	Username   string `json:"username"`
	Password   string `json:"password"`
	MaxResults int    `json:"maxResults"`
}

type Folder

type Folder struct {
	Path      string `json:"path"`
	FreeSpace int64  `json:"freeSpace"`
	ID        int    `json:"id"`
}

type Movie

type Movie struct {
	Title     string       `json:"title"`
	TitleSlug string       `json:"titleSlug"`
	Year      int          `json:"year"`
	PosterURL string       `json:"remotePoster"`
	TMDBID    int          `json:"tmdbId"`
	Images    []MovieImage `json:"images"`
}

func (Movie) String

func (m Movie) String() string

type MovieImage

type MovieImage struct {
	CoverType string `json:"coverType"`
	URL       string `json:"url"`
}

type Profile added in v0.1.1

type Profile struct {
	Name string `json:"name"`
	ID   int    `json:"id"`
}

Jump to

Keyboard shortcuts

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