mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +08:00
@@ -454,9 +454,9 @@ class BangumiIntroController extends CommonController {
|
|||||||
int currentIndex =
|
int currentIndex =
|
||||||
episodes.indexWhere((e) => e.cid == videoDetailCtr.cid.value);
|
episodes.indexWhere((e) => e.cid == videoDetailCtr.cid.value);
|
||||||
int prevIndex = currentIndex - 1;
|
int prevIndex = currentIndex - 1;
|
||||||
PlayRepeat platRepeat = videoDetailCtr.plPlayerController.playRepeat;
|
PlayRepeat playRepeat = videoDetailCtr.plPlayerController.playRepeat;
|
||||||
if (prevIndex < 0) {
|
if (prevIndex < 0) {
|
||||||
if (platRepeat == PlayRepeat.listCycle) {
|
if (playRepeat == PlayRepeat.listCycle) {
|
||||||
prevIndex = episodes.length - 1;
|
prevIndex = episodes.length - 1;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
@@ -476,12 +476,12 @@ class BangumiIntroController extends CommonController {
|
|||||||
late List episodes;
|
late List episodes;
|
||||||
VideoDetailController videoDetailCtr =
|
VideoDetailController videoDetailCtr =
|
||||||
Get.find<VideoDetailController>(tag: Get.arguments['heroTag']);
|
Get.find<VideoDetailController>(tag: Get.arguments['heroTag']);
|
||||||
PlayRepeat platRepeat = videoDetailCtr.plPlayerController.playRepeat;
|
PlayRepeat playRepeat = videoDetailCtr.plPlayerController.playRepeat;
|
||||||
|
|
||||||
if ((loadingState.value as Success).response.episodes != null) {
|
if ((loadingState.value as Success).response.episodes != null) {
|
||||||
episodes = (loadingState.value as Success).response.episodes!;
|
episodes = (loadingState.value as Success).response.episodes!;
|
||||||
} else {
|
} else {
|
||||||
if (platRepeat == PlayRepeat.autoPlayRelated) {
|
if (playRepeat == PlayRepeat.autoPlayRelated) {
|
||||||
return playRelated();
|
return playRelated();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -490,9 +490,9 @@ class BangumiIntroController extends CommonController {
|
|||||||
int nextIndex = currentIndex + 1;
|
int nextIndex = currentIndex + 1;
|
||||||
// 列表循环
|
// 列表循环
|
||||||
if (nextIndex == episodes.length - 1) {
|
if (nextIndex == episodes.length - 1) {
|
||||||
if (platRepeat == PlayRepeat.listCycle) {
|
if (playRepeat == PlayRepeat.listCycle) {
|
||||||
nextIndex = 0;
|
nextIndex = 0;
|
||||||
} else if (platRepeat == PlayRepeat.autoPlayRelated) {
|
} else if (playRepeat == PlayRepeat.autoPlayRelated) {
|
||||||
return playRelated();
|
return playRelated();
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -641,11 +641,11 @@ class VideoIntroController extends GetxController
|
|||||||
episodes.indexWhere((e) => e.cid == lastPlayCid.value);
|
episodes.indexWhere((e) => e.cid == lastPlayCid.value);
|
||||||
int prevIndex = currentIndex - 1;
|
int prevIndex = currentIndex - 1;
|
||||||
final videoDetailCtr = Get.find<VideoDetailController>(tag: heroTag);
|
final videoDetailCtr = Get.find<VideoDetailController>(tag: heroTag);
|
||||||
final PlayRepeat platRepeat = videoDetailCtr.plPlayerController.playRepeat;
|
final PlayRepeat playRepeat = videoDetailCtr.plPlayerController.playRepeat;
|
||||||
|
|
||||||
// 列表循环
|
// 列表循环
|
||||||
if (prevIndex < 0) {
|
if (prevIndex < 0) {
|
||||||
if (platRepeat == PlayRepeat.listCycle) {
|
if (playRepeat == PlayRepeat.listCycle) {
|
||||||
prevIndex = episodes.length - 1;
|
prevIndex = episodes.length - 1;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
@@ -679,10 +679,10 @@ class VideoIntroController extends GetxController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
final PlayRepeat platRepeat = videoDetailCtr.plPlayerController.playRepeat;
|
final PlayRepeat playRepeat = videoDetailCtr.plPlayerController.playRepeat;
|
||||||
|
|
||||||
if (episodes.isEmpty) {
|
if (episodes.isEmpty) {
|
||||||
if (platRepeat == PlayRepeat.autoPlayRelated &&
|
if (playRepeat == PlayRepeat.autoPlayRelated &&
|
||||||
videoDetailCtr.showRelatedVideo) {
|
videoDetailCtr.showRelatedVideo) {
|
||||||
return playRelated();
|
return playRelated();
|
||||||
}
|
}
|
||||||
@@ -699,9 +699,9 @@ class VideoIntroController extends GetxController
|
|||||||
|
|
||||||
// 列表循环
|
// 列表循环
|
||||||
if (nextIndex >= episodes.length) {
|
if (nextIndex >= episodes.length) {
|
||||||
if (platRepeat == PlayRepeat.listCycle) {
|
if (playRepeat == PlayRepeat.listCycle) {
|
||||||
nextIndex = 0;
|
nextIndex = 0;
|
||||||
} else if (platRepeat == PlayRepeat.autoPlayRelated &&
|
} else if (playRepeat == PlayRepeat.autoPlayRelated &&
|
||||||
videoDetailCtr.showRelatedVideo) {
|
videoDetailCtr.showRelatedVideo) {
|
||||||
return playRelated();
|
return playRelated();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user