diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-02-19 09:10:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-19 09:10:19 +0100 |
commit | 5cd802d157a687224949a0f0cc9f93413aefaaf2 (patch) | |
tree | a2713fab9d1deca3a7c77bc52be2421954d1accb | |
parent | 4a526f6e7fcab1fb9ef14ee189bd8804910ebf05 (diff) | |
parent | c6ec28f1c52ef529cfda508b3ce3d972591d50b6 (diff) | |
download | homer-5cd802d157a687224949a0f0cc9f93413aefaaf2.tar.gz homer-5cd802d157a687224949a0f0cc9f93413aefaaf2.tar.zst homer-5cd802d157a687224949a0f0cc9f93413aefaaf2.zip |
Merge pull request #380 from FinalDoom/main
Change Radarr/Sonarr v3 to use totalRecords
-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) => { |