X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2Fcomponents%2Fservices%2FEmby.vue;h=d2411f067debed17a76e35106fe156b8ffd0e094;hb=23990e85090b425e98e563e2e390044d0695c19d;hp=4d543440bdd5ba7dc6dd81ba490e4728c90c57ac;hpb=abfe72b9cfc0a4fde3f5e5948dd516bda0e2a2ff;p=github%2Fbastienwirtz%2Fhomer.git diff --git a/src/components/services/Emby.vue b/src/components/services/Emby.vue index 4d54344..d2411f0 100644 --- a/src/components/services/Emby.vue +++ b/src/components/services/Emby.vue @@ -59,14 +59,10 @@ export default { }, methods: { fetchServerStatus: async function () { - const headers = { - "X-Emby-Token": this.item.apikey, - }; - - await this.fetch("/System/info/public", { headers }) + this.fetch("/System/info/public") .then((response) => { if (response.Id) this.status = "running"; - else this.status = "dead"; + else throw new Error(); }) .catch((e) => { console.log(e);