diff --git a/nfoguard-web/static/index.html b/nfoguard-web/static/index.html index 929d860..f434527 100644 --- a/nfoguard-web/static/index.html +++ b/nfoguard-web/static/index.html @@ -457,6 +457,6 @@
- + \ No newline at end of file diff --git a/nfoguard-web/static/js/app.js b/nfoguard-web/static/js/app.js index 73ff854..14f72ff 100644 --- a/nfoguard-web/static/js/app.js +++ b/nfoguard-web/static/js/app.js @@ -539,7 +539,7 @@ function showEpisodesModal(data) { `${dateadded}`; return ` - + S${episode.season.toString().padStart(2, '0')}E${episode.episode.toString().padStart(2, '0')} ${episode.aired || '-'} ${dateCell} @@ -1349,20 +1349,19 @@ function updateEpisodeModalCounts() { const episodesWithDates = Array.from(remainingRows).filter(row => row.getAttribute('data-has-date') === 'true' ).length; + const episodesWithVideo = Array.from(remainingRows).filter(row => + row.getAttribute('data-has-video') === 'true' + ).length; const episodesWithoutDates = totalEpisodes - episodesWithDates; // Update the stats in the modal const statsDiv = document.querySelector('.episode-stats'); if (statsDiv) { - // Keep the existing "With Video" count by finding it - const videoCountDiv = statsDiv.querySelector('div:nth-child(4)'); - const videoCountText = videoCountDiv ? videoCountDiv.innerHTML : '
With Video: -
'; - statsDiv.innerHTML = `
Total Episodes: ${totalEpisodes}
With Dates: ${episodesWithDates}
Missing Dates: ${episodesWithoutDates}
- ${videoCountText} +
With Video: ${episodesWithVideo}
`; } }