Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-02-27 20:04:04 +08:00
parent bceabae06f
commit 2a173ef804
2 changed files with 8 additions and 5 deletions

View File

@@ -146,10 +146,11 @@ class VideoHttp {
(!enableRcmdDynamic ? i['card_goto'] != 'picture' : true) && (!enableRcmdDynamic ? i['card_goto'] != 'picture' : true) &&
(i['args'] != null && (i['args'] != null &&
!blackMidsList.contains(i['args']['up_id']))) { !blackMidsList.contains(i['args']['up_id']))) {
if (zoneRegExp.pattern.isNotEmpty && // if (zoneRegExp.pattern.isNotEmpty &&
zoneRegExp.hasMatch(i['args']['rname'])) { // i['args']?['rname'] != null &&
continue; // zoneRegExp.hasMatch(i['args']['rname'])) {
} // 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);
@@ -178,6 +179,7 @@ class VideoHttp {
!RecommendFilter.filterLikeRatio( !RecommendFilter.filterLikeRatio(
i['stat']['like'], i['stat']['view'])) { i['stat']['like'], i['stat']['view'])) {
if (zoneRegExp.pattern.isNotEmpty && if (zoneRegExp.pattern.isNotEmpty &&
i['tname'] != null &&
zoneRegExp.hasMatch(i['tname'])) { zoneRegExp.hasMatch(i['tname'])) {
continue; continue;
} }
@@ -1120,6 +1122,7 @@ class VideoHttp {
!RecommendFilter.filterLikeRatio( !RecommendFilter.filterLikeRatio(
i['stat']['like'], i['stat']['view'])) { i['stat']['like'], i['stat']['view'])) {
if (zoneRegExp.pattern.isNotEmpty && if (zoneRegExp.pattern.isNotEmpty &&
i['tname'] != null &&
zoneRegExp.hasMatch(i['tname'])) { zoneRegExp.hasMatch(i['tname'])) {
continue; continue;
} }

View File

@@ -1315,7 +1315,7 @@ List<SettingsModel> get recommendSettings => [
getBanWord: () => GStorage.banWordForRecommend, getBanWord: () => GStorage.banWordForRecommend,
), ),
getBanwordModel( getBanwordModel(
title: '推荐(app端)/热门/分区: 视频分区关键词过滤', title: '热门/分区: 视频分区关键词过滤',
key: SettingBoxKey.banWordForZone, key: SettingBoxKey.banWordForZone,
getBanWord: () => GStorage.banWordForZone, getBanWord: () => GStorage.banWordForZone,
), ),