pvr

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Init(MediaType) error
	ShouldIgnore(*config.MediaItem) (bool, error)

	GetQualityProfileId(string) (int, error)
	GetExistingMedia() (map[string]config.MediaItem, error)
	AddMedia(*config.MediaItem) error
}

func Get

func Get(pvrName string, pvrType string, pvrConfig *config.Pvr) (Interface, error)

type MediaType

type MediaType int
const (
	SHOW MediaType = iota + 1
	MOVIE
)

type Radarr

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

func NewRadarr

func NewRadarr(name string, c *config.Pvr) *Radarr

func (*Radarr) AddMedia

func (p *Radarr) AddMedia(item *config.MediaItem) error

func (*Radarr) GetExistingMedia

func (p *Radarr) GetExistingMedia() (map[string]config.MediaItem, error)

func (*Radarr) GetQualityProfileId

func (p *Radarr) GetQualityProfileId(profileName string) (int, error)

func (*Radarr) Init

func (p *Radarr) Init(mediaType MediaType) error

func (*Radarr) ShouldIgnore

func (p *Radarr) ShouldIgnore(mediaItem *config.MediaItem) (bool, error)

type RadarrAddOptions

type RadarrAddOptions struct {
	SearchForMovie             bool `json:"searchForMovie"`
	IgnoreEpisodesWithFiles    bool `json:"ignoreEpisodesWithFiles"`
	IgnoreEpisodesWithoutFiles bool `json:"ignoreEpisodesWithoutFiles"`
}

type RadarrAddRequest

type RadarrAddRequest struct {
	Title               string           `json:"title"`
	TitleSlug           string           `json:"titleSlug"`
	Year                int              `json:"year"`
	QualityProfileId    int              `json:"qualityProfileId"`
	Images              []string         `json:"images"`
	Monitored           bool             `json:"monitored"`
	RootFolderPath      string           `json:"rootFolderPath"`
	MinimumAvailability string           `json:"minimumAvailability"`
	AddOptions          RadarrAddOptions `json:"addOptions"`
	TmdbId              int              `json:"tmdbId"`
}

type RadarrMovies

type RadarrMovies struct {
	Title  string
	Status string
	ImdbId string
	TmdbId int
}

type RadarrQualityProfiles

type RadarrQualityProfiles struct {
	Name string
	Id   int
}

type RadarrSystemStatus

type RadarrSystemStatus struct {
	Version string
}

type Sonarr

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

func NewSonarr

func NewSonarr(name string, c *config.Pvr) *Sonarr

func (*Sonarr) AddMedia

func (p *Sonarr) AddMedia(item *config.MediaItem) error

func (*Sonarr) GetExistingMedia

func (p *Sonarr) GetExistingMedia() (map[string]config.MediaItem, error)

func (*Sonarr) GetLanguageProfileId added in v1.2.0

func (p *Sonarr) GetLanguageProfileId(profileName string) (int, error)

func (*Sonarr) GetQualityProfileId

func (p *Sonarr) GetQualityProfileId(profileName string) (int, error)

func (*Sonarr) Init

func (p *Sonarr) Init(mediaType MediaType) error

func (*Sonarr) ShouldIgnore

func (p *Sonarr) ShouldIgnore(mediaItem *config.MediaItem) (bool, error)

type SonarrAddOptions

type SonarrAddOptions struct {
	SearchForMissingEpisodes   bool `json:"searchForMissingEpisodes"`
	IgnoreEpisodesWithFiles    bool `json:"ignoreEpisodesWithFiles"`
	IgnoreEpisodesWithoutFiles bool `json:"ignoreEpisodesWithoutFiles"`
}

type SonarrAddRequest

type SonarrAddRequest struct {
	Title             string           `json:"title"`
	TitleSlug         string           `json:"titleSlug"`
	Year              int              `json:"year"`
	QualityProfileId  int              `json:"qualityProfileId"`
	LanguageProfileId int              `json:"languageProfileId"`
	Images            []string         `json:"images"`
	Tags              []string         `json:"tags"`
	Monitored         bool             `json:"monitored"`
	RootFolderPath    string           `json:"rootFolderPath"`
	AddOptions        SonarrAddOptions `json:"addOptions"`
	Seasons           []string         `json:"seasons"`
	SeriesType        string           `json:"seriesType"`
	SeasonFolder      bool             `json:"seasonFolder"`
	TvdbId            int              `json:"tvdbId"`
}

type SonarrLanguageProfiles added in v1.2.0

type SonarrLanguageProfiles struct {
	Name string
	Id   int
}

type SonarrQualityProfiles

type SonarrQualityProfiles struct {
	Name string
	Id   int
}

type SonarrSeries

type SonarrSeries struct {
	Title  string
	Status string
	TvdbId int
}

type SonarrSystemStatus

type SonarrSystemStatus struct {
	Version string
}

Jump to

Keyboard shortcuts

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