diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-05-29 09:46:05 +0200 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-05-29 09:46:05 +0200 |
commit | 95d73348e5dd8fd0fbb1b6747c58b346ecf772ad (patch) | |
tree | d60d4cd006d12d43871c0069fa3de6aefff3befe /src/components/services/Tautulli.vue | |
parent | d4001281d926bf3b004f1af5f9c0eeacee07325e (diff) | |
download | homer-95d73348e5dd8fd0fbb1b6747c58b346ecf772ad.tar.gz homer-95d73348e5dd8fd0fbb1b6747c58b346ecf772ad.tar.zst homer-95d73348e5dd8fd0fbb1b6747c58b346ecf772ad.zip |
Updates
Diffstat (limited to 'src/components/services/Tautulli.vue')
-rw-r--r-- | src/components/services/Tautulli.vue | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/services/Tautulli.vue b/src/components/services/Tautulli.vue index 2e8f8f5..0f27ff1 100644 --- a/src/components/services/Tautulli.vue +++ b/src/components/services/Tautulli.vue | |||
@@ -50,14 +50,16 @@ export default { | |||
50 | methods: { | 50 | methods: { |
51 | fetchStatus: async function () { | 51 | fetchStatus: async function () { |
52 | try { | 52 | try { |
53 | const response = await this.fetch(`/api/v2?apikey=${this.item.apikey}&cmd=get_activity`); | 53 | const response = await this.fetch( |
54 | `/api/v2?apikey=${this.item.apikey}&cmd=get_activity` | ||
55 | ); | ||
54 | this.error = false; | 56 | this.error = false; |
55 | this.stats = response.response.data; | 57 | this.stats = response.response.data; |
56 | } catch (e) { | 58 | } catch (e) { |
57 | this.error = true; | 59 | this.error = true; |
58 | console.error(e); | 60 | console.error(e); |
59 | } | 61 | } |
60 | } | 62 | }, |
61 | }, | 63 | }, |
62 | }; | 64 | }; |
63 | </script> | 65 | </script> |