Documentation ¶
Index ¶
- type AlternateTitle
- type BadRequestResponse
- type Client
- func (c *Client) GetAllSeries(ctx context.Context) ([]Series, error)
- func (c *Client) GetSeries(ctx context.Context, tvdbID int64) ([]Series, error)
- func (c *Client) GetTags(ctx context.Context) ([]*arr.Tag, error)
- func (c *Client) Push(ctx context.Context, release Release) ([]string, error)
- func (c *Client) Test(ctx context.Context) (*SystemStatusResponse, error)
- type ClientInterface
- type Config
- type PushResponse
- type Release
- type Season
- type Series
- type Statistics
- type SystemStatusResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlternateTitle ¶
type BadRequestResponse ¶
type BadRequestResponse struct { PropertyName string `json:"propertyName"` ErrorMessage string `json:"errorMessage"` ErrorCode string `json:"errorCode"` AttemptedValue string `json:"attemptedValue"` Severity string `json:"severity"` }
func (*BadRequestResponse) String ¶
func (r *BadRequestResponse) String() string
type ClientInterface ¶
type PushResponse ¶
type Release ¶
type Release struct { Title string `json:"title"` InfoUrl string `json:"infoUrl,omitempty"` DownloadUrl string `json:"downloadUrl,omitempty"` MagnetUrl string `json:"magnetUrl,omitempty"` Size uint64 `json:"size"` Indexer string `json:"indexer"` DownloadProtocol string `json:"downloadProtocol"` Protocol string `json:"protocol"` PublishDate string `json:"publishDate"` DownloadClientId int `json:"downloadClientId,omitempty"` DownloadClient string `json:"downloadClient,omitempty"` }
type Season ¶
type Season struct { SeasonNumber int `json:"seasonNumber"` Monitored bool `json:"monitored"` Statistics *Statistics `json:"statistics,omitempty"` }
type Series ¶
type Series struct { ID int64 `json:"id"` Title string `json:"title,omitempty"` AlternateTitles []*AlternateTitle `json:"alternateTitles,omitempty"` SortTitle string `json:"sortTitle,omitempty"` Status string `json:"status,omitempty"` Overview string `json:"overview,omitempty"` PreviousAiring time.Time `json:"previousAiring,omitempty"` Network string `json:"network,omitempty"` Images []*arr.Image `json:"images,omitempty"` Seasons []*Season `json:"seasons,omitempty"` Year int `json:"year,omitempty"` Path string `json:"path,omitempty"` QualityProfileID int64 `json:"qualityProfileId,omitempty"` LanguageProfileID int64 `json:"languageProfileId,omitempty"` Runtime int `json:"runtime,omitempty"` TvdbID int64 `json:"tvdbId,omitempty"` TvRageID int64 `json:"tvRageId,omitempty"` TvMazeID int64 `json:"tvMazeId,omitempty"` FirstAired time.Time `json:"firstAired,omitempty"` SeriesType string `json:"seriesType,omitempty"` CleanTitle string `json:"cleanTitle,omitempty"` ImdbID string `json:"imdbId,omitempty"` TitleSlug string `json:"titleSlug,omitempty"` RootFolderPath string `json:"rootFolderPath,omitempty"` Certification string `json:"certification,omitempty"` Genres []string `json:"genres,omitempty"` Tags []int `json:"tags,omitempty"` Added time.Time `json:"added,omitempty"` Ratings *arr.Ratings `json:"ratings,omitempty"` Statistics *Statistics `json:"statistics,omitempty"` NextAiring time.Time `json:"nextAiring,omitempty"` AirTime string `json:"airTime,omitempty"` Ended bool `json:"ended,omitempty"` SeasonFolder bool `json:"seasonFolder,omitempty"` Monitored bool `json:"monitored"` UseSceneNumbering bool `json:"useSceneNumbering,omitempty"` }
type Statistics ¶
type Statistics struct { SeasonCount int `json:"seasonCount"` PreviousAiring time.Time `json:"previousAiring"` EpisodeFileCount int `json:"episodeFileCount"` EpisodeCount int `json:"episodeCount"` TotalEpisodeCount int `json:"totalEpisodeCount"` SizeOnDisk int64 `json:"sizeOnDisk"` PercentOfEpisodes float64 `json:"percentOfEpisodes"` }
type SystemStatusResponse ¶
type SystemStatusResponse struct {
Version string `json:"version"`
}
Click to show internal directories.
Click to hide internal directories.