mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: refilter rcmd tname
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -69,7 +69,7 @@ class VideoHttp {
|
|||||||
// 添加额外的loginState变量模拟未登录状态
|
// 添加额外的loginState变量模拟未登录状态
|
||||||
static Future<LoadingState> rcmdVideoListApp({required int freshIdx}) async {
|
static Future<LoadingState> rcmdVideoListApp({required int freshIdx}) async {
|
||||||
Map<String, String> data = {
|
Map<String, String> data = {
|
||||||
'build': '1462100',
|
'build': '2001100',
|
||||||
'c_locale': 'zh_CN',
|
'c_locale': 'zh_CN',
|
||||||
'channel': 'yingyongbao',
|
'channel': 'yingyongbao',
|
||||||
'column': '4',
|
'column': '4',
|
||||||
@@ -126,11 +126,11 @@ class VideoHttp {
|
|||||||
i['ad_info'] == null &&
|
i['ad_info'] == null &&
|
||||||
(!enableRcmdDynamic ? i['card_goto'] != 'picture' : true) &&
|
(!enableRcmdDynamic ? i['card_goto'] != 'picture' : true) &&
|
||||||
(i['args'] != null && !blackMids.contains(i['args']['up_id']))) {
|
(i['args'] != null && !blackMids.contains(i['args']['up_id']))) {
|
||||||
// if (zoneRegExp.pattern.isNotEmpty &&
|
if (zoneRegExp.pattern.isNotEmpty &&
|
||||||
// i['args']?['rname'] != null &&
|
i['args']?['tname'] != null &&
|
||||||
// zoneRegExp.hasMatch(i['args']['rname'])) {
|
zoneRegExp.hasMatch(i['args']['tname'])) {
|
||||||
// continue;
|
continue;
|
||||||
// }
|
}
|
||||||
RecVideoItemAppModel videoItem = RecVideoItemAppModel.fromJson(i);
|
RecVideoItemAppModel videoItem = RecVideoItemAppModel.fromJson(i);
|
||||||
if (!RecommendFilter.filter(videoItem)) {
|
if (!RecommendFilter.filter(videoItem)) {
|
||||||
list.add(videoItem);
|
list.add(videoItem);
|
||||||
|
|||||||
@@ -29,7 +29,9 @@ class RecVideoItemAppModel extends BaseRecVideoItemModel {
|
|||||||
//duration = json['cover_right_text'];
|
//duration = json['cover_right_text'];
|
||||||
title = json['title'];
|
title = json['title'];
|
||||||
owner = RcmdOwner.fromJson(json);
|
owner = RcmdOwner.fromJson(json);
|
||||||
rcmdReason = json['bottom_rcmd_reason'] ?? json['top_rcmd_reason'];
|
rcmdReason = json['rcmd_reason'];
|
||||||
|
// json['bottom_rcmd_reason'] ??
|
||||||
|
// json['top_rcmd_reason'];
|
||||||
if (rcmdReason != null && rcmdReason!.contains('赞')) {
|
if (rcmdReason != null && rcmdReason!.contains('赞')) {
|
||||||
// 有时能在推荐原因里获得点赞数
|
// 有时能在推荐原因里获得点赞数
|
||||||
(stat as RcmdStat).like = Utils.parseNum(rcmdReason!);
|
(stat as RcmdStat).like = Utils.parseNum(rcmdReason!);
|
||||||
|
|||||||
@@ -1405,7 +1405,7 @@ List<SettingsModel> get recommendSettings => [
|
|||||||
),
|
),
|
||||||
_getBanwordModel(
|
_getBanwordModel(
|
||||||
context: Get.context!,
|
context: Get.context!,
|
||||||
title: '热门/分区: 视频分区关键词过滤',
|
title: 'App推荐/热门/排行榜: 视频分区关键词过滤',
|
||||||
key: SettingBoxKey.banWordForZone,
|
key: SettingBoxKey.banWordForZone,
|
||||||
callback: (value) {
|
callback: (value) {
|
||||||
VideoHttp.zoneRegExp = value;
|
VideoHttp.zoneRegExp = value;
|
||||||
|
|||||||
Reference in New Issue
Block a user