feat: custom enable sponsor block, def: false

This commit is contained in:
bggRGjQaUbCoE
2024-10-03 14:55:12 +08:00
parent 5395ca91cd
commit c19ff4ce42
3 changed files with 11 additions and 1 deletions

View File

@@ -151,7 +151,9 @@ class VideoDetailController extends GetxController
cacheAudioQa = setting.get(SettingBoxKey.defaultAudioQa,
defaultValue: AudioQuality.hiRes.code);
oid.value = IdUtils.bv2av(Get.parameters['bvid']!);
_sponsorBlock();
if (setting.get(SettingBoxKey.enableSponsorBlock, defaultValue: false)) {
_sponsorBlock();
}
}
List? _segmentList;