mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-21 16:48:43 +00:00
deprecate rcmdDyn
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -34,7 +34,6 @@ import 'package:flutter/foundation.dart';
|
||||
|
||||
/// view层根据 status 判断渲染逻辑
|
||||
class VideoHttp {
|
||||
// static bool enableRcmdDynamic = Pref.enableRcmdDynamic;
|
||||
static RegExp zoneRegExp = RegExp(Pref.banWordForZone, caseSensitive: false);
|
||||
static bool enableFilter = zoneRegExp.pattern.isNotEmpty;
|
||||
|
||||
@@ -133,7 +132,6 @@ class VideoHttp {
|
||||
if (i['card_goto'] != 'ad_av' &&
|
||||
i['card_goto'] != 'ad_web_s' &&
|
||||
i['ad_info'] == null &&
|
||||
// (!enableRcmdDynamic ? i['card_goto'] != 'picture' : true) &&
|
||||
(i['args'] != null &&
|
||||
!GlobalData().blackMids.contains(i['args']['up_id']))) {
|
||||
if (enableFilter &&
|
||||
|
||||
@@ -18,14 +18,6 @@ List<SettingsModel> get recommendSettings => [
|
||||
defaultVal: true,
|
||||
needReboot: true,
|
||||
),
|
||||
const SettingsModel(
|
||||
settingsType: SettingsType.sw1tch,
|
||||
title: '推荐动态',
|
||||
subtitle: '是否在推荐内容中展示动态(仅app端)',
|
||||
leading: Icon(Icons.motion_photos_on_outlined),
|
||||
setKey: SettingBoxKey.enableRcmdDynamic,
|
||||
defaultVal: true,
|
||||
),
|
||||
SettingsModel(
|
||||
settingsType: SettingsType.sw1tch,
|
||||
title: '保留首页推荐刷新',
|
||||
|
||||
@@ -41,7 +41,6 @@ class SettingBoxKey {
|
||||
fullScreenGestureReverse = 'fullScreenGestureReverse',
|
||||
enableBackgroundPlay = 'enableBackgroundPlay',
|
||||
continuePlayInBackground = 'continuePlayInBackground',
|
||||
enableRcmdDynamic = 'enableRcmdDynamic',
|
||||
appRcmd = 'appRcmd',
|
||||
enableSaveLastData = 'enableSaveLastData',
|
||||
minDurationForRcmd = 'minDurationForRcmd',
|
||||
|
||||
@@ -653,9 +653,6 @@ abstract class Pref {
|
||||
static bool get enableHttp2 =>
|
||||
_setting.get(SettingBoxKey.enableHttp2, defaultValue: false);
|
||||
|
||||
static bool get enableRcmdDynamic =>
|
||||
_setting.get(SettingBoxKey.enableRcmdDynamic, defaultValue: true);
|
||||
|
||||
static int get replySortType =>
|
||||
_setting.get(SettingBoxKey.replySortType, defaultValue: 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user