40
sonarr/struct.go
Normal file
40
sonarr/struct.go
Normal file
@@ -0,0 +1,40 @@
|
||||
package sonarr
|
||||
|
||||
type systemStatus struct {
|
||||
Version string
|
||||
}
|
||||
|
||||
type qualityProfile struct {
|
||||
Name string
|
||||
Id int
|
||||
}
|
||||
|
||||
type lookupRequest struct {
|
||||
Id int `json:"id,omitempty"`
|
||||
Title string `json:"title"`
|
||||
TitleSlug string `json:"titleSlug"`
|
||||
Year int `json:"year,omitempty"`
|
||||
TvdbId int `json:"tvdbId"`
|
||||
}
|
||||
|
||||
type addRequest struct {
|
||||
Title string `json:"title"`
|
||||
TitleSlug string `json:"titleSlug"`
|
||||
Year int `json:"year"`
|
||||
QualityProfileId int `json:"qualityProfileId"`
|
||||
Images []string `json:"images"`
|
||||
Tags []string `json:"tags"`
|
||||
Monitored bool `json:"monitored"`
|
||||
RootFolderPath string `json:"rootFolderPath"`
|
||||
AddOptions addOptions `json:"addOptions"`
|
||||
Seasons []string `json:"seasons"`
|
||||
SeriesType string `json:"seriesType"`
|
||||
SeasonFolder bool `json:"seasonFolder"`
|
||||
TvdbId int `json:"tvdbId"`
|
||||
}
|
||||
|
||||
type addOptions struct {
|
||||
SearchForMissingEpisodes bool `json:"searchForMissingEpisodes"`
|
||||
IgnoreEpisodesWithFiles bool `json:"ignoreEpisodesWithFiles"`
|
||||
IgnoreEpisodesWithoutFiles bool `json:"ignoreEpisodesWithoutFiles"`
|
||||
}
|
||||
Reference in New Issue
Block a user