This commit is contained in:
@@ -467,14 +467,14 @@ function updateSeriesTable(data) {
|
||||
const tbody = document.getElementById('series-tbody');
|
||||
|
||||
if (!data.series || data.series.length === 0) {
|
||||
tbody.innerHTML = '<tr><td colspan="6" class="text-center">No series found</td></tr>';
|
||||
tbody.innerHTML = '<tr><td colspan="7" class="text-center">No series found</td></tr>';
|
||||
return;
|
||||
}
|
||||
|
||||
tbody.innerHTML = data.series.map(series => {
|
||||
const progressPercent = series.total_episodes > 0 ?
|
||||
const progressPercent = series.total_episodes > 0 ?
|
||||
((series.episodes_with_dates / series.total_episodes) * 100).toFixed(1) : 0;
|
||||
|
||||
|
||||
return `
|
||||
<tr>
|
||||
<td>${escapeHtml(series.title)}</td>
|
||||
@@ -485,6 +485,7 @@ function updateSeriesTable(data) {
|
||||
<small class="text-muted">(${progressPercent}%)</small>
|
||||
</td>
|
||||
<td>${series.episodes_with_video}</td>
|
||||
<td>${series.episodes_skipped || 0}</td>
|
||||
<td>
|
||||
<button class="btn btn-sm btn-primary" onclick="viewSeriesEpisodes('${series.imdb_id}')">
|
||||
<i class="fas fa-list"></i> Episodes
|
||||
|
||||
Reference in New Issue
Block a user