Skip to content

Commit

Permalink
fix: use QueryParams for excludeLocalCovers
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <[email protected]>
  • Loading branch information
onedr0p committed Nov 7, 2023
1 parent 54377ef commit 4a2c587
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/arr/collector/radarr.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,13 @@ func (collector *radarrCollector) Collect(ch chan<- prometheus.Metric) {
Movies int
}{}
)

movies := model.Movie{}
params := client.QueryParams{}
params.Add("excludeLocalCovers", "true")

// https://radarr.video/docs/api/#/Movie/get_api_v3_movie
if err := c.DoRequest("movie?excludeLocalCovers=true", &movies); err != nil {
if err := c.DoRequest("movie", &movies, params); err != nil {
log.Errorw("Error getting movies", "error", err)
ch <- prometheus.NewInvalidMetric(collector.errorMetric, err)
return
Expand Down

0 comments on commit 4a2c587

Please sign in to comment.