This commit is contained in:
2025-09-21 19:20:28 +02:00
parent 6166b8111e
commit ca9cbce083
4 changed files with 47 additions and 22 deletions

View File

@@ -11,6 +11,17 @@
}
async function refresh(){
let data;
try{
const r = await fetch('/api/streams', { cache: 'no-store' });
if (!r.ok) throw new Error('api '+r.status);
data = await r.json();
}catch(e){
console.warn('streams api error:', e);
setLive(false);
viewersEl.textContent = 'Zuschauer: ';
return;
}
const r = await fetch('/api/streams');
const d = await r.json();
const it = d.items.find(x=>x.name===name);