一分钟搭建影视站,支持Docker等部署方式
集数显示修改
developerb0947181df42
diff --git a/js/app.js b/js/app.jsindex d903e56..5ac0479 100644--- a/js/app.js+++ b/js/app.js@@ -42,7 +42,7 @@ document.addEventListener('DOMContentLoaded', function() {localStorage.setItem('hasInitializedDefaults', 'true');}- // 设置黄色内容过滤开关初始状态+ // 设置黄色内容过滤器开关初始状态const yellowFilterToggle = document.getElementById('yellowFilterToggle');if (yellowFilterToggle) {yellowFilterToggle.checked = localStorage.getItem('yellowFilterEnabled') === 'true';@@ -1151,7 +1151,7 @@ function renderEpisodes(vodName, sourceCode, vodId) {return `<button id="episode-${realIndex}" onclick="playVideo('${episode}','${vodName.replace(/"/g, '"')}', '${sourceCode}', ${realIndex}, '${vodId}')"class="px-4 py-2 bg-[#222] hover:bg-[#333] border border-[#333] rounded-lg transition-colors text-center episode-btn">- 第${realIndex + 1}集+ ${realIndex + 1}</button>`;}).join('');diff --git a/js/player.js b/js/player.jsindex 8953d91..0567120 100644--- a/js/player.js+++ b/js/player.js@@ -814,7 +814,7 @@ function renderEpisodes() {<button id="episode-${realIndex}"onclick="playEpisode(${realIndex})"class="px-4 py-2 ${isActive ? 'episode-active' : '!bg-[#222] hover:!bg-[#333] hover:!shadow-none'} !border ${isActive ? '!border-blue-500' : '!border-[#333]'} rounded-lg transition-colors text-center episode-btn">- 第${realIndex + 1}集+ ${realIndex + 1}</button>`;});diff --git a/js/ui.js b/js/ui.jsindex 1c01407..9389b2d 100644--- a/js/ui.js+++ b/js/ui.js@@ -393,7 +393,7 @@ function loadViewingHistory() {'未知来源';const episodeText = item.episodeIndex !== undefined ?- `第${item.episodeIndex + 1}集` : '';+ `${item.episodeIndex + 1}` : '';// 格式化进度信息let progressHtml = '';