mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-23 04:00:28 +08:00
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user