mirror of
https://github.com/bastienwirtz/homer.git
synced 2026-05-06 20:57:19 +02:00
feat: add autoupdate support for Emby
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user