Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-11-22 19:35:42 +08:00
parent cb8333d4c0
commit c4aca389a8
8 changed files with 23 additions and 18 deletions

View File

@@ -1185,7 +1185,7 @@ class VideoDetailController extends GetxController
);
if (!isFileSource) {
if (plPlayerController.enableSponsorBlock) {
if (plPlayerController.enableBlock) {
initSkip();
}
@@ -1707,7 +1707,7 @@ class VideoDetailController extends GetxController
}
// sponsor block
if (plPlayerController.enableSponsorBlock) {
if (plPlayerController.enableBlock) {
_lastPos = null;
positionSubscription?.cancel();
positionSubscription = null;
@@ -1799,7 +1799,7 @@ class VideoDetailController extends GetxController
@pragma('vm:notify-debugger-on-exception')
bool onSkipSegment() {
try {
if (plPlayerController.enableSponsorBlock) {
if (plPlayerController.enableBlock) {
if (listData.lastOrNull case SegmentModel item) {
onSkip(item, isSeek: false);
onRemoveItem(listData.indexOf(item), item);