From c6ec28f1c52ef529cfda508b3ce3d972591d50b6 Mon Sep 17 00:00:00 2001 From: FinalDoom <7464170-FinalDoom@users.noreply.gitlab.com> Date: Fri, 18 Feb 2022 06:39:27 -0700 Subject: Change Radarr/Sonarr v3 to use totalRecords as counting paged records is wrong number --- src/components/services/Radarr.vue | 6 +----- src/components/services/Sonarr.vue | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) (limited to 'src/components/services') diff --git a/src/components/services/Radarr.vue b/src/components/services/Radarr.vue index 7573667..5c40aaa 100644 --- a/src/components/services/Radarr.vue +++ b/src/components/services/Radarr.vue @@ -83,11 +83,7 @@ export default { } } } else { - for (const record of queue.records) { - if (record.movieId) { - this.activity++; - } - } + this.activity = queue.totalRecords; } }) .catch((e) => { diff --git a/src/components/services/Sonarr.vue b/src/components/services/Sonarr.vue index 55df437..bb83b6b 100644 --- a/src/components/services/Sonarr.vue +++ b/src/components/services/Sonarr.vue @@ -83,11 +83,7 @@ export default { } } } else { - for (const record of queue.records) { - if (record.seriesId) { - this.activity++; - } - } + this.activity = queue.totalRecords; } }) .catch((e) => { -- cgit v1.2.3