fix: bangumi next play index

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-02 12:09:22 +08:00
parent 6e08735421
commit eafaa1b045

View File

@@ -490,7 +490,7 @@ class BangumiIntroController extends CommonController {
episodes.indexWhere((e) => e.cid == videoDetailCtr.cid.value); episodes.indexWhere((e) => e.cid == videoDetailCtr.cid.value);
int nextIndex = currentIndex + 1; int nextIndex = currentIndex + 1;
// 列表循环 // 列表循环
if (nextIndex == episodes.length - 1) { if (nextIndex >= episodes.length) {
if (playRepeat == PlayRepeat.listCycle) { if (playRepeat == PlayRepeat.listCycle) {
nextIndex = 0; nextIndex = 0;
} else if (playRepeat == PlayRepeat.autoPlayRelated) { } else if (playRepeat == PlayRepeat.autoPlayRelated) {