feat: add autoupdate support for Emby

This commit is contained in:
Bastien Wirtz
2026-01-18 15:26:31 +01:00
parent 1d665305c3
commit 531b1e3f64

View File

@@ -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) => {