diff --git a/templates/index.html b/templates/index.html index 7c40dc6..e407006 100644 --- a/templates/index.html +++ b/templates/index.html @@ -44,3 +44,32 @@ function renderDownloads(data){if(!downloadBody)return;const items=data.items||[ async function fetchDownloads(){if(!downloadBody)return;try{const response=await fetch('/api/downloads');const data=await response.json();renderDownloads(data)}catch(error){renderDownloads({error:'Dashboard konnte SABnzbd nicht erreichen.',items:[]})}}; if(downloadBody){fetchDownloads();setInterval(fetchDownloads,4000)} + +