mirror of
https://github.com/onedr0p/exportarr.git
synced 2026-02-06 10:57:32 +00:00
Fix #244: return early if no series are returned
Signed-off-by: Russell Troxel <russell@troxel.io>
This commit is contained in:
parent
63ea3fa3bf
commit
b51f214775
@ -410,6 +410,10 @@ func (collector *bazarrCollector) CollectEpisodeStats(ch chan<- prometheus.Metri
|
||||
for _, s := range series.Data {
|
||||
ids = append(ids, fmt.Sprintf("%d", s.Id))
|
||||
}
|
||||
if len(ids) < 1 {
|
||||
return episodeStats
|
||||
}
|
||||
|
||||
batches := createIDBatches(ids, collector.config.Bazarr.SeriesBatchSize)
|
||||
|
||||
eg := errgroup.Group{}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user