aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/services/Radarr.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/services/Radarr.vue')
-rw-r--r--src/components/services/Radarr.vue15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/components/services/Radarr.vue b/src/components/services/Radarr.vue
index 13f6d68..55896f5 100644
--- a/src/components/services/Radarr.vue
+++ b/src/components/services/Radarr.vue
@@ -75,9 +75,18 @@ export default {
75 this.fetch(`${this.apiPath}/queue?apikey=${this.item.apikey}`) 75 this.fetch(`${this.apiPath}/queue?apikey=${this.item.apikey}`)
76 .then((queue) => { 76 .then((queue) => {
77 this.activity = 0; 77 this.activity = 0;
78 for (var i = 0; i < queue.length; i++) { 78
79 if (queue[i].movie) { 79 if (this.item.legacyApi) {
80 this.activity++; 80 for (var i = 0; i < queue.length; i++) {
81 if (queue[i].series) {
82 this.activity++;
83 }
84 }
85 } else {
86 for (const record of queue.records) {
87 if (record.movieId) {
88 this.activity++;
89 }
81 } 90 }
82 } 91 }
83 }) 92 })