From 9e66f6a8e2d2824bc12d4b978ffcf0a4ab67882f Mon Sep 17 00:00:00 2001 From: oldmagic Date: Fri, 18 Sep 2026 17:58:57 +0200 Subject: [PATCH] Show XDCC count beside missing episodes --- templates/index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/index.html b/templates/index.html index 1449680..761ad32 100644 --- a/templates/index.html +++ b/templates/index.html @@ -771,6 +771,9 @@
${show.title}${show.year ? ` (${show.year})` : ''}
const show = showsWithMissing[showTitle]; const showId = `show-${show.tmdb_show_id}`; const collapseId = `collapse-${show.tmdb_show_id}`; + const xdccCount = show.episodes.reduce((total, episode) => { + return total + (Array.isArray(episode.xdcc_results) ? episode.xdcc_results.length : 0); + }, 0); const posterUrl = show.poster_path ? `https://image.tmdb.org/t/p/w300${show.poster_path}` : null; @@ -797,6 +800,9 @@
${show.title}${show.year ? ` (${show.year})` : ''}

${show.episodes.length} missing episode${show.episodes.length > 1 ? 's' : ''} + ยท + + ${xdccCount} XDCC${xdccCount === 1 ? '' : 's'} available

${getSeasonBadges(show.episodes)}