diff --git a/templates/index.html b/templates/index.html index 9583fe5..dff2839 100644 --- a/templates/index.html +++ b/templates/index.html @@ -964,7 +964,7 @@ const unwanted = allDownloads.filter(dl => dl.status === 'cancelled' || dl.status === 'failed' || - dl.status === 'deleted' // If you have this status + dl.status === 'deleted' ); if (unwanted.length === 0) { @@ -1519,6 +1519,7 @@ downloading: allDownloads.filter(d => d.status === 'downloading').length, paused: allDownloads.filter(d => d.status === 'paused').length, completed: allDownloads.filter(d => d.status === 'completed').length, + cancelled: allDownloads.filter(d => d.status === 'cancelled').length, failed: allDownloads.filter(d => d.status === 'failed').length }; @@ -1527,6 +1528,7 @@ ${stats.downloading > 0 ? `
En cours: ${stats.downloading}
` : ''} ${stats.paused > 0 ? `
En pause: ${stats.paused}
` : ''} ${stats.completed > 0 ? `
Terminés: ${stats.completed}
` : ''} + ${stats.cancelled > 0 ? `
Annulés: ${stats.cancelled}
` : ''} ${stats.failed > 0 ? `
Échoués: ${stats.failed}
` : ''} `; }