diff --git a/webui/static/pages-extra.js b/webui/static/pages-extra.js index 9ea3fc26..73a212b1 100644 --- a/webui/static/pages-extra.js +++ b/webui/static/pages-extra.js @@ -2832,15 +2832,17 @@ function _adlRenderBatchHistory() { const failed = h.tracks_failed || 0; const total = h.total_tracks || 0; - // Build stats: "found/total Xnew Xfailed" + // Build stats line: "X in library · X downloaded · X failed (of N)" const statsParts = []; if (found > 0 || downloaded > 0) { const owned = found - downloaded; // already in library before this sync - if (owned > 0) statsParts.push(`${owned}`); - if (downloaded > 0) statsParts.push(`${downloaded} new`); + if (owned > 0) statsParts.push(`${owned} in library`); + if (downloaded > 0) statsParts.push(`${downloaded} downloaded`); } if (failed > 0) statsParts.push(`${failed} failed`); - if (statsParts.length === 0) statsParts.push(`0/${total}`); + const notFound = total - found - failed; + if (notFound > 0) statsParts.push(`${notFound} not found`); + if (statsParts.length === 0) statsParts.push(`${total} tracks`); let dateText = ''; if (h.completed_at) { @@ -2877,11 +2879,16 @@ function _adlRenderBatchHistory() { : ''; return `