Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: onedr0p/exportarr
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.2.5
Choose a base ref
...
head repository: onedr0p/exportarr
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.2.6
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Mar 28, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    68ac419 View commit details
Showing with 9 additions and 9 deletions.
  1. +1 −1 internal/collector/radarr/movie.go
  2. +8 −8 internal/collector/sonarr/series.go
2 changes: 1 addition & 1 deletion internal/collector/radarr/movie.go
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ type radarrCollector struct {
movieMetric *prometheus.Desc // Total number of movies
movieDownloadedMetric *prometheus.Desc // Total number of downloaded movies
movieMonitoredMetric *prometheus.Desc // Total number of monitored movies
movieUnmonitoredMetric *prometheus.Desc // Total number of monitored movies
movieUnmonitoredMetric *prometheus.Desc // Total number of unmonitored movies
movieWantedMetric *prometheus.Desc // Total number of wanted movies
movieMissingMetric *prometheus.Desc // Total number of missing movies
movieQualitiesMetric *prometheus.Desc // Total number of movies by quality
16 changes: 8 additions & 8 deletions internal/collector/sonarr/series.go
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ type sonarrCollector struct {
seasonMetric *prometheus.Desc // Total number of seasons
seasonDownloadedMetric *prometheus.Desc // Total number of downloaded seasons
seasonMonitoredMetric *prometheus.Desc // Total number of monitored seasons
seasonUnmonitoredMetric *prometheus.Desc // Total number of monitored seasons
seasonUnmonitoredMetric *prometheus.Desc // Total number of unmonitored seasons
episodeMetric *prometheus.Desc // Total number of episodes
episodeMonitoredMetric *prometheus.Desc // Total number of monitored episodes
episodeUnmonitoredMetric *prometheus.Desc // Total number of unmonitored episodes
@@ -189,7 +189,7 @@ func (collector *sonarrCollector) Collect(ch chan<- prometheus.Metric) {
for _, s := range series {
tseries := time.Now()

if !s.Monitored {
if s.Monitored {
seriesMonitored++
} else {
seriesUnmonitored++
@@ -205,10 +205,10 @@ func (collector *sonarrCollector) Collect(ch chan<- prometheus.Metric) {
seriesFileSize += s.Statistics.SizeOnDisk

for _, e := range s.Seasons {
if !e.Monitored {
seasonsUnmonitored++
} else {
if e.Monitored {
seasonsMonitored++
} else {
seasonsUnmonitored++
}

if e.Statistics.PercentOfEpisodes == 100 {
@@ -240,10 +240,10 @@ func (collector *sonarrCollector) Collect(ch chan<- prometheus.Metric) {
return
}
for _, e := range episode {
if !e.Monitored {
episodesUnmonitored++
} else {
if e.Monitored {
episodesMonitored++
} else {
episodesUnmonitored++
}
}
log.Debugw("Extra options completed",