提交 011b64e4 编写于 作者: H hjdhnx

新增动态分类排除,可以不清分类缓存

上级 e1f90fd0
无法预览此类型文件
......@@ -505,7 +505,7 @@ class CMS:
video_result = self.homeVideoContent(html,fypage)
except Exception as e:
logger.info(f'{self.getName()}主页发生错误:{e}')
classes = list(filter(lambda x:not self.cate_exclude or not jsoup(self.url).test(self.cate_exclude, x['type_name']),classes))
result['class'] = classes
if self.filter:
if isinstance(self.filter,dict):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册