mirror of
https://github.com/bastienwirtz/homer.git
synced 2026-08-13 12:33:16 +02:00
feat: add autoupdate support for Emby
This commit is contained in:
parent
1d665305c3
commit
531b1e3f64
1 changed files with 11 additions and 3 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue