diff options
Diffstat (limited to 'src/components/services/Sonarr.vue')
-rw-r--r-- | src/components/services/Sonarr.vue | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/components/services/Sonarr.vue b/src/components/services/Sonarr.vue index 3e5c49f..55df437 100644 --- a/src/components/services/Sonarr.vue +++ b/src/components/services/Sonarr.vue | |||
@@ -76,9 +76,17 @@ export default { | |||
76 | this.fetch(`${this.apiPath}/queue?apikey=${this.item.apikey}`) | 76 | this.fetch(`${this.apiPath}/queue?apikey=${this.item.apikey}`) |
77 | .then((queue) => { | 77 | .then((queue) => { |
78 | this.activity = 0; | 78 | this.activity = 0; |
79 | for (var i = 0; i < queue.length; i++) { | 79 | if (this.item.legacyApi) { |
80 | if (queue[i].series) { | 80 | for (var i = 0; i < queue.length; i++) { |
81 | this.activity++; | 81 | if (queue[i].series) { |
82 | this.activity++; | ||
83 | } | ||
84 | } | ||
85 | } else { | ||
86 | for (const record of queue.records) { | ||
87 | if (record.seriesId) { | ||
88 | this.activity++; | ||
89 | } | ||
82 | } | 90 | } |
83 | } | 91 | } |
84 | }) | 92 | }) |