From eafaa1b045e067062b07c33d86ec45bc129feb0e Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Thu, 2 Jan 2025 12:09:22 +0800 Subject: [PATCH] fix: bangumi next play index Signed-off-by: bggRGjQaUbCoE --- lib/pages/bangumi/introduction/controller.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pages/bangumi/introduction/controller.dart b/lib/pages/bangumi/introduction/controller.dart index 4f843619..9679c555 100644 --- a/lib/pages/bangumi/introduction/controller.dart +++ b/lib/pages/bangumi/introduction/controller.dart @@ -490,7 +490,7 @@ class BangumiIntroController extends CommonController { episodes.indexWhere((e) => e.cid == videoDetailCtr.cid.value); int nextIndex = currentIndex + 1; // 列表循环 - if (nextIndex == episodes.length - 1) { + if (nextIndex >= episodes.length) { if (playRepeat == PlayRepeat.listCycle) { nextIndex = 0; } else if (playRepeat == PlayRepeat.autoPlayRelated) {