sonarr

package
v0.0.0-...-4f3a07d Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoEpisodes = errors.New("no episodes provided")
View Source
var ErrNoSerieSelected = errors.New("no serie selected")

Functions

This section is empty.

Types

type AddSeriesResult

type AddSeriesResult struct {
	AddedTitle string
	Items      []list.Item
	Error      error
}

type Client

type Client struct {
	Config *config.SonarrConfig
	// contains filtered or unexported fields
}

func New

func New(cfg *config.SonarrConfig, sonarr *sonarr.Client) *Client

func (*Client) AutomaticSearchEpisode

func (c *Client) AutomaticSearchEpisode(epiodeIDs ...int32) tea.Cmd

func (*Client) AutomaticSearchSeason

func (c *Client) AutomaticSearchSeason(seasonNumber int32) tea.Cmd

func (*Client) AutomaticSearchSeries

func (c *Client) AutomaticSearchSeries() tea.Cmd

func (*Client) ClientListItem

func (c *Client) ClientListItem() ClientItem

func (*Client) DeleteEpisodeFile

func (c *Client) DeleteEpisodeFile(episode *sonarrAPI.EpisodeResource) tea.Cmd

func (*Client) DeleteSeries

func (c *Client) DeleteSeries(series *sonarr.SeriesResource, deleteFiles, addExclusion bool) tea.Cmd

func (*Client) FetchLanguageProfiles

func (c *Client) FetchLanguageProfiles() error

FetchLanguageProfiles fetches all language profiles

func (*Client) FetchMissingNumber

func (c *Client) FetchMissingNumber() error

FetchMissingNumber fetches the number of missing episodes

func (*Client) FetchQualityProfiles

func (c *Client) FetchQualityProfiles() error

FetchQualityProfiles fetches all quality profiles

func (*Client) FetchQueueNumber

func (c *Client) FetchQueueNumber() error

FetchQueueNumber fetches the number of items in the download queue

func (*Client) FetchRootFolders

func (c *Client) FetchRootFolders() error

FetchRootFolders fetches all root folders

func (*Client) FetchSeasonEpisodes

func (c *Client) FetchSeasonEpisodes(season int32) tea.Cmd

func (*Client) FetchSeries

func (c *Client) FetchSeries() tea.Cmd

func (*Client) GetEpisodeHistory

func (c *Client) GetEpisodeHistory(episode *sonarrAPI.EpisodeResource) tea.Cmd

func (*Client) GetLanguageProfileByID

func (c *Client) GetLanguageProfileByID(id int32) *sonarr.LanguageProfileResource

GetQualityProfileByID returns a quality profile by id or an empty quality profile if not found

func (*Client) GetLanguageProfiles

func (c *Client) GetLanguageProfiles() []*sonarr.LanguageProfileResource

func (*Client) GetQualityProfileByID

func (c *Client) GetQualityProfileByID(id int32) *sonarr.QualityProfileResource

GetQualityProfileByID returns a quality profile by id or an empty quality profile if not found

func (*Client) GetQualityProfiles

func (c *Client) GetQualityProfiles() []*sonarr.QualityProfileResource

func (*Client) GetRootFolders

func (c *Client) GetRootFolders() []*sonarr.RootFolderResource

func (*Client) GetSeason

func (c *Client) GetSeason() *sonarr.SeasonResource

func (*Client) GetSeasonEpisodes

func (c *Client) GetSeasonEpisodes() []*sonarr.EpisodeResource

func (*Client) GetSerie

func (c *Client) GetSerie() *sonarr.SeriesResource

func (*Client) GetSerieQualityProfile

func (c *Client) GetSerieQualityProfile() *sonarr.QualityProfileResource

func (*Client) GetSeriesQueue

func (c *Client) GetSeriesQueue() []*sonarr.QueueResource

func (*Client) Init

func (c *Client) Init() error

Init initializes the client and fetches some stats TODO: gather only stats here, move the rest to the fetchers to another function which is called when the actual client is selected

func (*Client) PostSeries

func (c *Client) PostSeries(series *sonarr.SeriesResource) tea.Cmd

func (*Client) RefreshSeries

func (c *Client) RefreshSeries() tea.Cmd

func (*Client) ReloadSerie

func (c *Client) ReloadSerie() tea.Cmd

func (*Client) SearchSeries

func (c *Client) SearchSeries(term string) (tea.Cmd, context.CancelFunc)

func (*Client) SetSeason

func (c *Client) SetSeason(season *sonarr.SeasonResource)

func (*Client) SetSerie

func (c *Client) SetSerie(serie *sonarr.SeriesResource)

func (*Client) ToggleMonitorSeason

func (c *Client) ToggleMonitorSeason(id int) tea.Cmd

func (*Client) ToggleMonitorSeries

func (c *Client) ToggleMonitorSeries() tea.Cmd

type ClientItem

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

func (ClientItem) Available

func (i ClientItem) Available() bool

func (ClientItem) FilterValue

func (i ClientItem) FilterValue() string

func (ClientItem) Stats

func (i ClientItem) Stats() []string

func (ClientItem) String

func (i ClientItem) String() string

func (ClientItem) Title

func (i ClientItem) Title() string

type DeleteSeriesResult

type DeleteSeriesResult struct {
	DeletedTitle string
	Items        []list.Item
	Error        error
}

type EpisodeDeleteResult

type EpisodeDeleteResult struct {
	Error error
}

type EpisodeHistoryResult

type EpisodeHistoryResult struct {
	Error   error
	Episode *sonarrAPI.EpisodeResource
	History []*sonarrAPI.HistoryResource
}

type FetchSeasonEpisodesResult

type FetchSeasonEpisodesResult struct {
	Episodes []*sonarr.EpisodeResource
	Error    error
}

type FetchSerieResult

type FetchSerieResult struct {
	Serie *sonarr.SeriesResource
	Error error
}

type FetchSeriesResult

type FetchSeriesResult struct {
	Items []list.Item
	Error error
}

type SearchSeriesResult

type SearchSeriesResult struct {
	Items []list.Item
	Error error
}

type SeriesItem

type SeriesItem struct {
	Series *sonarr.SeriesResource
}

func (SeriesItem) FilterValue

func (s SeriesItem) FilterValue() string

Jump to

Keyboard shortcuts

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