This commit is contained in:
@@ -115,10 +115,12 @@ func New(c nabarr.PvrConfig, mode string, m *media.Client, cc *cache.Client) (*C
|
||||
}
|
||||
|
||||
// get language profile
|
||||
if lid, err := cl.getLanguageProfileId(c.LanguageProfile); err != nil {
|
||||
return nil, fmt.Errorf("get language profile: %v: %w", c.LanguageProfile, err)
|
||||
} else {
|
||||
cl.languageProfileId = lid
|
||||
if !strings.HasPrefix(ss.Version, "4.") {
|
||||
if lid, err := cl.getLanguageProfileId(c.LanguageProfile); err != nil {
|
||||
return nil, fmt.Errorf("get language profile: %v: %w", c.LanguageProfile, err)
|
||||
} else {
|
||||
cl.languageProfileId = lid
|
||||
}
|
||||
}
|
||||
|
||||
cl.log.Info().
|
||||
|
||||
@@ -34,7 +34,7 @@ type addRequest struct {
|
||||
TitleSlug string `json:"titleSlug"`
|
||||
Year int `json:"year"`
|
||||
QualityProfileId int `json:"qualityProfileId"`
|
||||
LanguageProfileId int `json:"languageProfileId"`
|
||||
LanguageProfileId int `json:"languageProfileId,omitempty"`
|
||||
Images []string `json:"images"`
|
||||
Tags []string `json:"tags"`
|
||||
Monitored bool `json:"monitored"`
|
||||
|
||||
Reference in New Issue
Block a user