From 2a9ca1b5b252b6245d1a2fa41b52530738bff5a1 Mon Sep 17 00:00:00 2001 From: NekoAria <990879119@qq.com> Date: Tue, 29 Jun 2021 23:45:45 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=EF=B8=8F=20Bug=20fixes.=20-=20?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=AF=B9=E8=AE=A2=E9=98=85=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=20`=E5=81=9C=E6=AD=A2=E6=9B=B4=E6=96=B0`=20=E7=9A=84=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=20-=20=E8=A1=A5=E4=B8=8A=E5=AF=B9=20`tbody`=20?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E7=9A=84=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/ELF_RSS2/RSS/rss_class.py | 2 +- src/plugins/ELF_RSS2/RSS/rss_parsing.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/ELF_RSS2/RSS/rss_class.py b/src/plugins/ELF_RSS2/RSS/rss_class.py index 908a51b9..11b1eb5b 100644 --- a/src/plugins/ELF_RSS2/RSS/rss_class.py +++ b/src/plugins/ELF_RSS2/RSS/rss_class.py @@ -33,7 +33,7 @@ class Rss: duplicate_filter_mode: [str] = None # 去重模式 max_image_number: int = 0 # 图片数量限制,防止消息太长刷屏 content_to_remove: [str] = None # 正文待移除内容,支持正则 - stop: False # 停止更新 + stop = False # 停止更新 def __init__( self, diff --git a/src/plugins/ELF_RSS2/RSS/rss_parsing.py b/src/plugins/ELF_RSS2/RSS/rss_parsing.py index bf4a298f..fd1ed156 100644 --- a/src/plugins/ELF_RSS2/RSS/rss_parsing.py +++ b/src/plugins/ELF_RSS2/RSS/rss_parsing.py @@ -691,6 +691,7 @@ async def handle_html_tag(html) -> str: "u", "tr", "td", + "tbody", ] for i in bbcode_tags: rss_str = re.sub(rf"\[{i}=.+?]", "", rss_str, flags=re.I)