Documentation ¶
Index ¶
- Variables
- type AddSeriesResult
- type Client
- func (c *Client) AutomaticSearchEpisode(epiodeIDs ...int32) tea.Cmd
- func (c *Client) AutomaticSearchSeason(seasonNumber int32) tea.Cmd
- func (c *Client) AutomaticSearchSeries() tea.Cmd
- func (c *Client) ClientListItem() ClientItem
- func (c *Client) DeleteEpisodeFile(episode *sonarrAPI.EpisodeResource) tea.Cmd
- func (c *Client) DeleteSeries(series *sonarr.SeriesResource, deleteFiles, addExclusion bool) tea.Cmd
- func (c *Client) FetchLanguageProfiles() error
- func (c *Client) FetchMissingNumber() error
- func (c *Client) FetchQualityProfiles() error
- func (c *Client) FetchQueueNumber() error
- func (c *Client) FetchRootFolders() error
- func (c *Client) FetchSeasonEpisodes(season int32) tea.Cmd
- func (c *Client) FetchSeries() tea.Cmd
- func (c *Client) GetEpisodeHistory(episode *sonarrAPI.EpisodeResource) tea.Cmd
- func (c *Client) GetLanguageProfileByID(id int32) *sonarr.LanguageProfileResource
- func (c *Client) GetLanguageProfiles() []*sonarr.LanguageProfileResource
- func (c *Client) GetQualityProfileByID(id int32) *sonarr.QualityProfileResource
- func (c *Client) GetQualityProfiles() []*sonarr.QualityProfileResource
- func (c *Client) GetRootFolders() []*sonarr.RootFolderResource
- func (c *Client) GetSeason() *sonarr.SeasonResource
- func (c *Client) GetSeasonEpisodes() []*sonarr.EpisodeResource
- func (c *Client) GetSerie() *sonarr.SeriesResource
- func (c *Client) GetSerieQualityProfile() *sonarr.QualityProfileResource
- func (c *Client) GetSeriesQueue() []*sonarr.QueueResource
- func (c *Client) Init() error
- func (c *Client) PostSeries(series *sonarr.SeriesResource) tea.Cmd
- func (c *Client) RefreshSeries() tea.Cmd
- func (c *Client) ReloadSerie() tea.Cmd
- func (c *Client) SearchSeries(term string) (tea.Cmd, context.CancelFunc)
- func (c *Client) SetSeason(season *sonarr.SeasonResource)
- func (c *Client) SetSerie(serie *sonarr.SeriesResource)
- func (c *Client) ToggleMonitorSeason(id int) tea.Cmd
- func (c *Client) ToggleMonitorSeries() tea.Cmd
- type ClientItem
- type DeleteSeriesResult
- type EpisodeDeleteResult
- type EpisodeHistoryResult
- type FetchSeasonEpisodesResult
- type FetchSerieResult
- type FetchSeriesResult
- type SearchSeriesResult
- type SeriesItem
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 Client ¶
type Client struct { Config *config.SonarrConfig // contains filtered or unexported fields }
func (*Client) AutomaticSearchEpisode ¶
func (*Client) AutomaticSearchSeason ¶
func (*Client) AutomaticSearchSeries ¶
func (*Client) ClientListItem ¶
func (c *Client) ClientListItem() ClientItem
func (*Client) DeleteEpisodeFile ¶
func (c *Client) DeleteEpisodeFile(episode *sonarrAPI.EpisodeResource) tea.Cmd
func (*Client) DeleteSeries ¶
func (*Client) FetchLanguageProfiles ¶
FetchLanguageProfiles fetches all language profiles
func (*Client) FetchMissingNumber ¶
FetchMissingNumber fetches the number of missing episodes
func (*Client) FetchQualityProfiles ¶
FetchQualityProfiles fetches all quality profiles
func (*Client) FetchQueueNumber ¶
FetchQueueNumber fetches the number of items in the download queue
func (*Client) FetchRootFolders ¶
FetchRootFolders fetches all root folders
func (*Client) FetchSeries ¶
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 ¶
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 (*Client) ReloadSerie ¶
func (*Client) SearchSeries ¶
func (*Client) SetSeason ¶
func (c *Client) SetSeason(season *sonarr.SeasonResource)
func (*Client) SetSerie ¶
func (c *Client) SetSerie(serie *sonarr.SeriesResource)
func (*Client) ToggleMonitorSeries ¶
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 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 SearchSeriesResult ¶
type SeriesItem ¶
type SeriesItem struct {
Series *sonarr.SeriesResource
}
func (SeriesItem) FilterValue ¶
func (s SeriesItem) FilterValue() string
Click to show internal directories.
Click to hide internal directories.