一分钟搭建影视站,支持Docker等部署方式
fix
developera2d8b2f6fbff
diff --git a/player.html b/player.htmlindex 3856a9c..2a47cc9 100644--- a/player.html+++ b/player.html@@ -1074,7 +1074,9 @@timestamp: Date.now(),// 添加播放进度信息playbackPosition: currentPosition > 10 ? currentPosition : 0,- duration: videoDuration+ duration: videoDuration,+ // 新增:保存完整的集数列表+ episodes: currentEpisodes};// 如果外部定义了addToViewingHistory函数,则调用它@@ -1096,6 +1098,10 @@history[existingIndex].duration = videoDuration || history[existingIndex].duration;// 同时更新URL以保存当前的集数状态history[existingIndex].url = window.location.href;+ // 更新集数列表(如果有)+ if (currentEpisodes && currentEpisodes.length > 0) {+ history[existingIndex].episodes = currentEpisodes;+ }// 移到最前面const updatedItem = history.splice(existingIndex, 1)[0];