Skip to content

Commit

Permalink
Merge pull request #147 from NekoAria/2.0
Browse files Browse the repository at this point in the history
修正对订阅属性 `停止更新` 的定义,补上对 `tbody` 标签的处理
  • Loading branch information
Quan authored Jun 30, 2021
2 parents 3c92612 + 2a9ca1b commit a1ad050
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/ELF_RSS2/RSS/rss_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/plugins/ELF_RSS2/RSS/rss_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a1ad050

Please sign in to comment.