mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-14 08:50:31 +00:00
refresh emby stats every second
This commit is contained in:
parent
33cf69964a
commit
5288717727
1 changed files with 3 additions and 1 deletions
|
@ -8,7 +8,9 @@ export default function Emby({ service }) {
|
|||
return `${url}/emby/${endpoint}?api_key=${key}`;
|
||||
}
|
||||
|
||||
const { data: sessionsData, error: sessionsError } = useSWR(buildApiUrl(`Sessions`));
|
||||
const { data: sessionsData, error: sessionsError } = useSWR(buildApiUrl(`Sessions`), {
|
||||
refreshInterval: 1000,
|
||||
});
|
||||
|
||||
if (sessionsError) {
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue