]> git.immae.eu Git - github/bastienwirtz/homer.git/commitdiff
Update Sonarr and Radarr API
authorDuy NGUYEN <duynguyen@deevotech.com>
Tue, 1 Feb 2022 15:39:15 +0000 (16:39 +0100)
committerDuy NGUYEN <duynguyen@deevotech.com>
Tue, 1 Feb 2022 15:39:15 +0000 (16:39 +0100)
src/components/services/Radarr.vue
src/components/services/Sonarr.vue

index a57c895f0e0e9bc9e10b48f5ef5c08c3df837e1b..a8c97c1992cbd0e448b3b8884a37c2e5656c6686 100644 (file)
@@ -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++) {
index f8dd0d1ac4e0e0db80bc19645161f6d79987b9d6..972a1c9fc3a001887860db1d9eb199783dd8ba69 100644 (file)
@@ -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++) {