From 10f2dc1904d9891b51dba494da3e6e7bff7b5caf Mon Sep 17 00:00:00 2001 From: shinya Date: Tue, 29 Jul 2025 19:36:11 +0800 Subject: [PATCH] fix: jump last episodes --- VERSION.txt | 2 +- src/app/play/page.tsx | 9 ++++++++- src/lib/version.ts | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/VERSION.txt b/VERSION.txt index c2ed5b1..da0ffa6 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -20250729184823 \ No newline at end of file +20250729193611 \ No newline at end of file diff --git a/src/app/play/page.tsx b/src/app/play/page.tsx index 8597a36..cf75288 100644 --- a/src/app/play/page.tsx +++ b/src/app/play/page.tsx @@ -1397,7 +1397,14 @@ function PlayPageClient() { duration > 0 && currentTime > skipConfigRef.current.outro_time ) { - handleNextEpisode(); + if ( + currentEpisodeIndexRef.current < + (detailRef.current?.episodes?.length || 1) - 1 + ) { + handleNextEpisode(); + } else { + artPlayerRef.current.pause(); + } artPlayerRef.current.notice.show = `已跳过片尾 (${formatTime( skipConfigRef.current.outro_time )})`; diff --git a/src/lib/version.ts b/src/lib/version.ts index 1f99824..e8da238 100644 --- a/src/lib/version.ts +++ b/src/lib/version.ts @@ -2,7 +2,7 @@ 'use client'; -const CURRENT_VERSION = '20250729184823'; +const CURRENT_VERSION = '20250729193611'; // 版本检查结果枚举 export enum UpdateStatus {