diff options
author | FinalDoom <7464170-FinalDoom@users.noreply.gitlab.com> | 2022-02-18 06:39:27 -0700 |
---|---|---|
committer | FinalDoom <7464170-FinalDoom@users.noreply.gitlab.com> | 2022-02-18 06:39:27 -0700 |
commit | c6ec28f1c52ef529cfda508b3ce3d972591d50b6 (patch) | |
tree | a6d3c3bc3cb6662e2734ac36d88ba391c22d14cd | |
parent | 893690cf95eda1233a094e0d1b63011ff740989e (diff) | |
download | homer-c6ec28f1c52ef529cfda508b3ce3d972591d50b6.tar.gz homer-c6ec28f1c52ef529cfda508b3ce3d972591d50b6.tar.zst homer-c6ec28f1c52ef529cfda508b3ce3d972591d50b6.zip |
Change Radarr/Sonarr v3 to use totalRecords as counting paged records is
wrong number
-rw-r--r-- | src/components/services/Radarr.vue | 6 | ||||
-rw-r--r-- | src/components/services/Sonarr.vue | 6 |
2 files changed, 2 insertions, 10 deletions
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 { | |||
83 | } | 83 | } |
84 | } | 84 | } |
85 | } else { | 85 | } else { |
86 | for (const record of queue.records) { | 86 | this.activity = queue.totalRecords; |
87 | if (record.movieId) { | ||
88 | this.activity++; | ||
89 | } | ||
90 | } | ||
91 | } | 87 | } |
92 | }) | 88 | }) |
93 | .catch((e) => { | 89 | .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 { | |||
83 | } | 83 | } |
84 | } | 84 | } |
85 | } else { | 85 | } else { |
86 | for (const record of queue.records) { | 86 | this.activity = queue.totalRecords; |
87 | if (record.seriesId) { | ||
88 | this.activity++; | ||
89 | } | ||
90 | } | ||
91 | } | 87 | } |
92 | }) | 88 | }) |
93 | .catch((e) => { | 89 | .catch((e) => { |