57 lines
1.9 KiB
Go
57 lines
1.9 KiB
Go
package radarr
|
|
|
|
type Movie struct {
|
|
ID int `json:"id,omitempty"`
|
|
Title string `json:"title"`
|
|
SortTitle string `json:"sortTitle,omitempty"`
|
|
Status string `json:"status,omitempty"`
|
|
Overview string `json:"overview,omitempty"`
|
|
Year int `json:"year,omitempty"`
|
|
Studio string `json:"studio,omitempty"`
|
|
Runtime int `json:"runtime,omitempty"`
|
|
ImdbID string `json:"imdbId,omitempty"`
|
|
TmdbID int `json:"tmdbId,omitempty"`
|
|
TitleSlug string `json:"titleSlug,omitempty"`
|
|
Images []Image `json:"images,omitempty"`
|
|
HasFile bool `json:"hasFile,omitempty"`
|
|
QualityProfileID int `json:"qualityProfileId,omitempty"`
|
|
RootFolderPath string `json:"rootFolderPath,omitempty"`
|
|
Monitored bool `json:"monitored"`
|
|
MinimumAvailability string `json:"minimumAvailability,omitempty"`
|
|
AddOptions *AddOptions `json:"addOptions,omitempty"`
|
|
Path string `json:"path,omitempty"`
|
|
MovieFile *MovieFile `json:"movieFile,omitempty"`
|
|
Added string `json:"added,omitempty"`
|
|
}
|
|
|
|
type Image struct {
|
|
CoverType string `json:"coverType"`
|
|
URL string `json:"url"`
|
|
RemoteURL string `json:"remoteUrl"`
|
|
}
|
|
|
|
type AddOptions struct {
|
|
SearchForMovie bool `json:"searchForMovie"`
|
|
}
|
|
|
|
type MovieFile struct {
|
|
RelativePath string `json:"relativePath"`
|
|
Size int64 `json:"size"`
|
|
Quality *struct {
|
|
Quality struct {
|
|
Name string `json:"name"`
|
|
} `json:"quality"`
|
|
} `json:"quality,omitempty"`
|
|
}
|
|
|
|
type QualityProfile struct {
|
|
ID int `json:"id"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type RootFolder struct {
|
|
ID int `json:"id"`
|
|
Path string `json:"path"`
|
|
FreeSpace int64 `json:"freeSpace"`
|
|
}
|