fix: use excludeLocalCovers=true in Radarr movies endpoint

This should help speed things up as the API req won't need to read files from disk.
This commit is contained in:
Devin Buhl 2023-11-07 15:31:38 -05:00 committed by GitHub
parent b6dd1a160f
commit 54377efa17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,7 +132,7 @@ func (collector *radarrCollector) Collect(ch chan<- prometheus.Metric) {
)
movies := model.Movie{}
// https://radarr.video/docs/api/#/Movie/get_api_v3_movie
if err := c.DoRequest("movie", &movies); err != nil {
if err := c.DoRequest("movie?excludeLocalCovers=true", &movies); err != nil {
log.Errorw("Error getting movies", "error", err)
ch <- prometheus.NewInvalidMetric(collector.errorMetric, err)
return