aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components
diff options
context:
space:
mode:
authorFinalDoom <7464170-FinalDoom@users.noreply.gitlab.com>2022-02-18 06:39:27 -0700
committerFinalDoom <7464170-FinalDoom@users.noreply.gitlab.com>2022-02-18 06:39:27 -0700
commitc6ec28f1c52ef529cfda508b3ce3d972591d50b6 (patch)
treea6d3c3bc3cb6662e2734ac36d88ba391c22d14cd /src/components
parent893690cf95eda1233a094e0d1b63011ff740989e (diff)
downloadhomer-c6ec28f1c52ef529cfda508b3ce3d972591d50b6.tar.gz
homer-c6ec28f1c52ef529cfda508b3ce3d972591d50b6.tar.zst
homer-c6ec28f1c52ef529cfda508b3ce3d972591d50b6.zip
Change Radarr/Sonarr v3 to use totalRecords as counting paged records is
wrong number
Diffstat (limited to 'src/components')
-rw-r--r--src/components/services/Radarr.vue6
-rw-r--r--src/components/services/Sonarr.vue6
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) => {