mod: rank: filter zone

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-10 22:57:30 +08:00
parent d0dc89ab54
commit d0687f6d5a
2 changed files with 7 additions and 1 deletions

View File

@@ -1029,6 +1029,12 @@ class VideoHttp {
!RecommendFilter.filterTitle(i['title']) &&
!RecommendFilter.filterLikeRatio(
i['stat']['like'], i['stat']['view'])) {
String banWordForZone = GStorage.banWordForZone;
if (banWordForZone.isNotEmpty &&
RegExp(banWordForZone, caseSensitive: false)
.hasMatch(i['tname'])) {
continue;
}
list.add(HotVideoItemModel.fromJson(i));
}
}

View File

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