refresh emby stats every second

pull/3/head
Ben Phelps 2 years ago
parent 33cf69964a
commit 5288717727

@ -8,7 +8,9 @@ export default function Emby({ service }) {
return `${url}/emby/${endpoint}?api_key=${key}`; 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) { if (sessionsError) {
return ( return (

Loading…
Cancel
Save