Skip to content

Commit

Permalink
修复微信链接规则变更带来的解析失败问题
Browse files Browse the repository at this point in the history
  • Loading branch information
fatwang2 committed Apr 19, 2024
1 parent 4b30927 commit b983c49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sum4all.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
from pptx import Presentation
from PIL import Image
import base64
import html



EXTENSION_TO_TYPE = {
Expand All @@ -35,7 +37,7 @@
name="sum4all",
desire_priority=2,
desc="A plugin for summarizing all things",
version="0.7.5",
version="0.7.6",
author="fatwang2",
)

Expand Down Expand Up @@ -225,6 +227,7 @@ def on_handle_context(self, e_context: EventContext):
os.remove(image_path)
logger.info(f"文件 {image_path} 已删除")
elif context.type == ContextType.SHARING: #匹配卡片分享
content = html.unescape(content)
if unsupported_urls: #匹配不支持总结的卡片
if isgroup: ##群聊中忽略
return
Expand Down

0 comments on commit b983c49

Please sign in to comment.