From cb154a6818cd25a36298e307cb415b11e9bd2247 Mon Sep 17 00:00:00 2001 From: Duy NGUYEN Date: Tue, 1 Feb 2022 16:39:15 +0100 Subject: Update Sonarr and Radarr API --- src/components/services/Radarr.vue | 4 ++-- src/components/services/Sonarr.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/components/services/Radarr.vue b/src/components/services/Radarr.vue index a57c895..a8c97c1 100644 --- a/src/components/services/Radarr.vue +++ b/src/components/services/Radarr.vue @@ -48,7 +48,7 @@ export default { }, methods: { fetchConfig: function () { - this.fetch(`/api/health?apikey=${this.item.apikey}`) + this.fetch(`/api/v3/health?apikey=${this.item.apikey}`) .then((health) => { this.warnings = 0; this.errors = 0; @@ -64,7 +64,7 @@ export default { console.error(e); this.serverError = true; }); - this.fetch(`/api/queue?apikey=${this.item.apikey}`) + this.fetch(`/api/v3/queue?apikey=${this.item.apikey}`) .then((queue) => { this.activity = 0; for (var i = 0; i < queue.length; i++) { diff --git a/src/components/services/Sonarr.vue b/src/components/services/Sonarr.vue index f8dd0d1..972a1c9 100644 --- a/src/components/services/Sonarr.vue +++ b/src/components/services/Sonarr.vue @@ -49,7 +49,7 @@ export default { }, methods: { fetchConfig: function () { - this.fetch(`/api/health?apikey=${this.item.apikey}`) + this.fetch(`/api/v3/health?apikey=${this.item.apikey}`) .then((health) => { this.warnings = 0; this.errors = 0; @@ -65,7 +65,7 @@ export default { console.error(e); this.serverError = true; }); - this.fetch(`/api/queue?apikey=${this.item.apikey}`) + this.fetch(`/api/v3/queue?apikey=${this.item.apikey}`) .then((queue) => { this.activity = 0; for (var i = 0; i < queue.length; i++) { -- cgit v1.2.3