From 2a173ef8043bae9847bfb28198f217699f3ab6cc Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Thu, 27 Feb 2025 20:04:04 +0800 Subject: [PATCH] fix: #334 Signed-off-by: bggRGjQaUbCoE --- lib/http/video.dart | 11 +++++++---- lib/pages/setting/widgets/model.dart | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/http/video.dart b/lib/http/video.dart index 6d89a343..6e14d481 100644 --- a/lib/http/video.dart +++ b/lib/http/video.dart @@ -146,10 +146,11 @@ class VideoHttp { (!enableRcmdDynamic ? i['card_goto'] != 'picture' : true) && (i['args'] != null && !blackMidsList.contains(i['args']['up_id']))) { - if (zoneRegExp.pattern.isNotEmpty && - zoneRegExp.hasMatch(i['args']['rname'])) { - continue; - } + // if (zoneRegExp.pattern.isNotEmpty && + // i['args']?['rname'] != null && + // zoneRegExp.hasMatch(i['args']['rname'])) { + // continue; + // } RecVideoItemAppModel videoItem = RecVideoItemAppModel.fromJson(i); if (!RecommendFilter.filter(videoItem)) { list.add(videoItem); @@ -178,6 +179,7 @@ class VideoHttp { !RecommendFilter.filterLikeRatio( i['stat']['like'], i['stat']['view'])) { if (zoneRegExp.pattern.isNotEmpty && + i['tname'] != null && zoneRegExp.hasMatch(i['tname'])) { continue; } @@ -1120,6 +1122,7 @@ class VideoHttp { !RecommendFilter.filterLikeRatio( i['stat']['like'], i['stat']['view'])) { if (zoneRegExp.pattern.isNotEmpty && + i['tname'] != null && zoneRegExp.hasMatch(i['tname'])) { continue; } diff --git a/lib/pages/setting/widgets/model.dart b/lib/pages/setting/widgets/model.dart index 88404b25..741d7cfa 100644 --- a/lib/pages/setting/widgets/model.dart +++ b/lib/pages/setting/widgets/model.dart @@ -1315,7 +1315,7 @@ List get recommendSettings => [ getBanWord: () => GStorage.banWordForRecommend, ), getBanwordModel( - title: '推荐(app端)/热门/分区: 视频分区关键词过滤', + title: '热门/分区: 视频分区关键词过滤', key: SettingBoxKey.banWordForZone, getBanWord: () => GStorage.banWordForZone, ),