mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-29 12:38:34 +00:00
mod: rank: filter zone
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1029,6 +1029,12 @@ class VideoHttp {
|
|||||||
!RecommendFilter.filterTitle(i['title']) &&
|
!RecommendFilter.filterTitle(i['title']) &&
|
||||||
!RecommendFilter.filterLikeRatio(
|
!RecommendFilter.filterLikeRatio(
|
||||||
i['stat']['like'], i['stat']['view'])) {
|
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));
|
list.add(HotVideoItemModel.fromJson(i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1181,7 +1181,7 @@ List<SettingsModel> get recommendSettings => [
|
|||||||
getBanWord: () => GStorage.banWordForRecommend,
|
getBanWord: () => GStorage.banWordForRecommend,
|
||||||
),
|
),
|
||||||
getBanwordModel(
|
getBanwordModel(
|
||||||
title: '推荐(app端)/热门: 视频分区关键词过滤',
|
title: '推荐(app端)/热门/分区: 视频分区关键词过滤',
|
||||||
key: SettingBoxKey.banWordForZone,
|
key: SettingBoxKey.banWordForZone,
|
||||||
getBanWord: () => GStorage.banWordForZone,
|
getBanWord: () => GStorage.banWordForZone,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user