fix(pvr): only support v3 arrs (#30)
* fix(pvr): only support v3 apis * fix(pvr): support v3 sonarr add series
This commit is contained in:
@@ -9,6 +9,11 @@ type qualityProfile struct {
|
||||
Id int
|
||||
}
|
||||
|
||||
type languageProfile struct {
|
||||
Name string
|
||||
Id int
|
||||
}
|
||||
|
||||
type lookupRequest struct {
|
||||
Id int `json:"id,omitempty"`
|
||||
Title string `json:"title"`
|
||||
@@ -19,19 +24,20 @@ type lookupRequest struct {
|
||||
}
|
||||
|
||||
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"`
|
||||
Title string `json:"title"`
|
||||
TitleSlug string `json:"titleSlug"`
|
||||
Year int `json:"year"`
|
||||
QualityProfileId int `json:"qualityProfileId"`
|
||||
LanguageProfileId int `json:"languageProfileId"`
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user