From 531b1e3f646df2d4d330d9e2591ab10173cd0fea Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Sun, 18 Jan 2026 15:26:31 +0100 Subject: [PATCH] feat: add autoupdate support for Emby --- src/components/services/Emby.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/components/services/Emby.vue b/src/components/services/Emby.vue index 5aa5f0d..fb57761 100644 --- a/src/components/services/Emby.vue +++ b/src/components/services/Emby.vue @@ -48,12 +48,20 @@ export default { }, }, created() { - this.fetchServerStatus(); + // Set up auto-update method for the scheduler + this.autoUpdateMethod = this.fetchAll; - if (!this.item.subtitle && this.status !== "dead") - this.fetchServerMediaStats(); + // Initial data fetch + this.fetchAll(); }, methods: { + fetchAll: async function () { + this.fetchServerStatus(); + + if (!this.item.subtitle) { + this.fetchServerMediaStats(); + } + }, fetchServerStatus: async function () { this.fetch("/System/info/public") .then((response) => {