diff options
author | Duy NGUYEN <duynguyen@deevotech.com> | 2022-02-01 16:39:15 +0100 |
---|---|---|
committer | Duy NGUYEN <duynguyen@deevotech.com> | 2022-02-01 16:39:15 +0100 |
commit | cb154a6818cd25a36298e307cb415b11e9bd2247 (patch) | |
tree | a042b7c15cf9ce0696b6dba684d0217ff299a6e2 | |
parent | 68b10120c940d51475843664f05d956abd53a0b5 (diff) | |
download | homer-cb154a6818cd25a36298e307cb415b11e9bd2247.tar.gz homer-cb154a6818cd25a36298e307cb415b11e9bd2247.tar.zst homer-cb154a6818cd25a36298e307cb415b11e9bd2247.zip |
Update Sonarr and Radarr API
-rw-r--r-- | src/components/services/Radarr.vue | 4 | ||||
-rw-r--r-- | src/components/services/Sonarr.vue | 4 |
2 files changed, 4 insertions, 4 deletions
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 { | |||
48 | }, | 48 | }, |
49 | methods: { | 49 | methods: { |
50 | fetchConfig: function () { | 50 | fetchConfig: function () { |
51 | this.fetch(`/api/health?apikey=${this.item.apikey}`) | 51 | this.fetch(`/api/v3/health?apikey=${this.item.apikey}`) |
52 | .then((health) => { | 52 | .then((health) => { |
53 | this.warnings = 0; | 53 | this.warnings = 0; |
54 | this.errors = 0; | 54 | this.errors = 0; |
@@ -64,7 +64,7 @@ export default { | |||
64 | console.error(e); | 64 | console.error(e); |
65 | this.serverError = true; | 65 | this.serverError = true; |
66 | }); | 66 | }); |
67 | this.fetch(`/api/queue?apikey=${this.item.apikey}`) | 67 | this.fetch(`/api/v3/queue?apikey=${this.item.apikey}`) |
68 | .then((queue) => { | 68 | .then((queue) => { |
69 | this.activity = 0; | 69 | this.activity = 0; |
70 | for (var i = 0; i < queue.length; i++) { | 70 | 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 { | |||
49 | }, | 49 | }, |
50 | methods: { | 50 | methods: { |
51 | fetchConfig: function () { | 51 | fetchConfig: function () { |
52 | this.fetch(`/api/health?apikey=${this.item.apikey}`) | 52 | this.fetch(`/api/v3/health?apikey=${this.item.apikey}`) |
53 | .then((health) => { | 53 | .then((health) => { |
54 | this.warnings = 0; | 54 | this.warnings = 0; |
55 | this.errors = 0; | 55 | this.errors = 0; |
@@ -65,7 +65,7 @@ export default { | |||
65 | console.error(e); | 65 | console.error(e); |
66 | this.serverError = true; | 66 | this.serverError = true; |
67 | }); | 67 | }); |
68 | this.fetch(`/api/queue?apikey=${this.item.apikey}`) | 68 | this.fetch(`/api/v3/queue?apikey=${this.item.apikey}`) |
69 | .then((queue) => { | 69 | .then((queue) => { |
70 | this.activity = 0; | 70 | this.activity = 0; |
71 | for (var i = 0; i < queue.length; i++) { | 71 | for (var i = 0; i < queue.length; i++) { |