Hotfix for sonarr search
This commit is contained in:
@@ -16,7 +16,7 @@ type episode struct {
|
|||||||
type sonarrSearch struct {
|
type sonarrSearch struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
SeasonNumber int `json:"seasonNumber"`
|
SeasonNumber int `json:"seasonNumber"`
|
||||||
SeriesId int `json:"episodeIds"`
|
SeriesId int `json:"seriesId"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type radarrSearch struct {
|
type radarrSearch struct {
|
||||||
|
|||||||
@@ -461,11 +461,12 @@ func (ui *Handler) handleProcessRepairJob(w http.ResponseWriter, r *http.Request
|
|||||||
http.Error(w, "No job ID provided", http.StatusBadRequest)
|
http.Error(w, "No job ID provided", http.StatusBadRequest)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
go func() {
|
||||||
svc := service.GetService()
|
svc := service.GetService()
|
||||||
if err := svc.Repair.ProcessJob(id); err != nil {
|
if err := svc.Repair.ProcessJob(id); err != nil {
|
||||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
ui.logger.Error().Err(err).Msg("Failed to process repair job")
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
}()
|
||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusOK)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user