mirror of
https://github.com/onedr0p/exportarr.git
synced 2026-02-06 10:57:32 +00:00
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:
parent
b6dd1a160f
commit
54377efa17
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user