Documentation ¶
Index ¶
- type AddSeriesOptions
- type AddTVShowOptions
- type AddTVShowRequest
- type AlternateTitles
- type Client
- func (c *Client) AddRequester(t TVShow, requester string) (TVShow, error)
- func (c *Client) AddTVShow(show TVShow, options AddSeriesOptions) (*TVShow, error)
- func (c *Client) CreateTag(label string) (tag TVShowTag, err error)
- func (c *Client) DeleteTVShow(tvShowId int) (err error)
- func (c *Client) GetFolders() ([]Folder, error)
- func (c *Client) GetMonitoredTVShows() (tvShows []TVShow, err error)
- func (c *Client) GetPosterURL(tvShow TVShow) string
- func (c *Client) GetProfile(prfl string) ([]Profile, error)
- func (c *Client) GetRequesterList(tvShow TVShow) (requester []string)
- func (c *Client) GetSystemStatus() (SystemStatus, error)
- func (c *Client) GetTVShow(tvShowId int) (tvShow TVShow, err error)
- func (c *Client) GetTVShows() (tvShows []TVShow, err error)
- func (c *Client) GetTVShowsByFolder(folder Folder) (tvShows []TVShow, err error)
- func (c *Client) GetTVShowsByRequester(requester string) (tvShows []TVShow, err error)
- func (c *Client) GetTagById(id int) (tvShowTag TVShowTag, err error)
- func (c *Client) GetTagByLabel(label string, createNew bool) (tvShowTag TVShowTag, err error)
- func (c *Client) GetTags() (tags []TVShowTag, err error)
- func (c *Client) RemoveRequester(t TVShow, requester string) (TVShow, error)
- func (c *Client) SearchTVShow(tvdbId int) (show TVShow, err error)
- func (c *Client) SearchTVShows(term string) ([]TVShow, error)
- func (c *Client) UpdateTVShow(t TVShow) (tvShow TVShow, err error)
- type CommandRequest
- type Config
- type Folder
- type Profile
- type SeasonStatistics
- type SystemStatus
- type TVShow
- type TVShowImage
- type TVShowRatings
- type TVShowSeason
- type TVShowStatistics
- type TVShowTag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddSeriesOptions ¶
type AddSeriesOptions struct { TVDBID int `json:"tvdbid"` Title string `json:"title"` ProfileID int `json:"profileId"` LanguageProfileID int `json:"languageProfileId"` Seasons []int `json:"seasons"` SeasonFolder bool `json:"seasonFolder"` RootFolderPath string `json:"rootFolderPath"` Tags []int `json:"tags"` Monitored bool `json:"monitored"` SearchNow bool `json:"searchNow"` }
type AddTVShowOptions ¶
type AddTVShowRequest ¶
type AddTVShowRequest struct { ID int `json:"ID"` Title string `json:"title"` TitleSlug string `json:"titleSlug"` Images []TVShowImage `json:"images"` QualityProfileID int `json:"qualityProfileId"` LanguageProfileID int `json:"languageProfileId"` TVDBID int `json:"tvdbId"` RootFolderPath string `json:"rootFolderPath"` Monitored bool `json:"monitored"` SeasonFolder bool `json:"seasonFolder"` Tags []int `json:"tags,omitempty"` AddOptions AddTVShowOptions `json:"addOptions"` Year int `json:"year"` Seasons []*TVShowSeason `json:"seasons"` Path string `json:path,omitempty` }
type AlternateTitles ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddRequester ¶
func (*Client) AddTVShow ¶
func (c *Client) AddTVShow(show TVShow, options AddSeriesOptions) (*TVShow, error)
func (*Client) DeleteTVShow ¶
func (*Client) GetFolders ¶
func (*Client) GetMonitoredTVShows ¶
func (*Client) GetPosterURL ¶
func (*Client) GetRequesterList ¶
func (*Client) GetSystemStatus ¶
func (c *Client) GetSystemStatus() (SystemStatus, error)
func (*Client) GetTVShows ¶
func (*Client) GetTVShowsByFolder ¶
func (*Client) GetTVShowsByRequester ¶
func (*Client) GetTagByLabel ¶
func (*Client) RemoveRequester ¶
type CommandRequest ¶
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"` QualityID int `json:"qualityId"` LanguageProfileID int `json:"languageProfileId"` }
type SeasonStatistics ¶
type SeasonStatistics struct { EpisodeCount int `json:"episodeCount"` EpisodeFileCount int `json:"episodeFileCount"` PercentOfEpisodes float64 `json:"percentOfEpisodes"` NextAiring time.Time `json:"nextAiring"` PreviousAiring time.Time `json:"previousAiring"` SizeOnDisk int64 `json:"sizeOnDisk"` TotalEpisodeCount int `json:"totalEpisodeCount"` }
type SystemStatus ¶
type SystemStatus struct { Version string `json:"version"` BuildTime string `json:"buildTime"` IsDebug bool `json:"isDebug"` IsProduction bool `json:"isProduction"` IsAdmin bool `json:"isAdmin"` IsUserInteractive bool `json:"isUserInteractive"` StartupPath string `json:"startupPath"` AppData string `json:"appData"` OsName string `json:"osName"` OsVersion string `json:"osVersion"` IsMonoRuntime bool `json:"isMonoRuntime"` IsMono bool `json:"isMono"` IsLinux bool `json:"isLinux"` IsOsx bool `json:"isOsx"` IsWindows bool `json:"isWindows"` Branch string `json:"branch"` Authentication string `json:"authentication"` SqliteVersion string `json:"sqliteVersion"` UrlBase string `json:"urlBase"` RuntimeVersion string `json:"runtimeVersion"` RuntimeName string `json:"runtimeName"` }
type TVShow ¶
type TVShow struct { Added time.Time `json:"added"` AirTime string `json:"airTime,omitempty"` AlternateTitles []AlternateTitles `json:"alternateTitles"` Certification string `json:"certification,omitempty"` CleanTitle string `json:"cleanTitle"` Ended bool `json:"ended"` FirstAired time.Time `json:"firstAired,omitempty"` Genres []string `json:"genres"` ID int `json:"id,omitempty"` Images []TVShowImage `json:"images"` ImdbID string `json:"imdbId,omitempty"` LanguageProfileID int `json:"languageProfileId"` Monitored bool `json:"monitored,omitempty"` Network string `json:"network"` NextAiring time.Time `json:"nextAiring,omitempty"` Overview string `json:"overview,omitempty"` Path string `json:"path,omitempty"` PreviousAiring time.Time `json:"previousAiring,omitempty"` QualityProfileID int `json:"qualityProfileId"` Ratings TVShowRatings `json:"ratings,omitempty"` RootFolderPath string `json:"rootFolderPath"` Runtime int `json:"runtime"` RemotePoster string `json:"remotePoster"` Seasons []*TVShowSeason `json:"seasons"` SeasonFolder bool `json:"seasonFolder"` SeriesType string `json:"seriesType"` SortTitle string `json:"sortTitle"` Statistics TVShowStatistics `json:"statistics,omitempty"` Status string `json:"status"` Tags []int `json:"tags,omitempty"` Title string `json:"title"` TitleSlug string `json:"titleSlug"` TvMazeID int `json:"tvMazeId"` TvRageID int `json:"tvRageId"` TvdbID int `json:"tvdbId"` UseSceneNumbering bool `json:"useSceneNumbering"` Year int `json:"year"` }
type TVShowImage ¶
type TVShowRatings ¶
type TVShowSeason ¶
type TVShowSeason struct { SeasonNumber int `json:"seasonNumber"` Monitored bool `json:"monitored"` Statistics SeasonStatistics `json:"statistics,omitempty"` }
type TVShowStatistics ¶
type TVShowStatistics struct { SeasonCount int `json:"seasonCount,omitempty"` EpisodeFileCount int `json:"episodeFileCount,omitempty"` EpisodeCount int `json:"episodeCount,omitempty"` TotalEpisodeCount int `json:"totalEpisodeCount,omitempty"` SizeOnDisk int64 `json:"sizeOnDisk,omitempty"` PercentOfEpisodes float64 `json:"percentOfEpisodes,omitempty"` }
Click to show internal directories.
Click to hide internal directories.