From 29fe2cab961c99301149ff24bc55485a9f93239a Mon Sep 17 00:00:00 2001 From: xaoyaoo Date: Thu, 22 Feb 2024 23:41:30 +0800 Subject: [PATCH] =?UTF-8?q?Type=E4=B8=BA49=EF=BC=8C=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=96=87=E4=BB=B6=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pywxdump/analyzer/export_chat.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pywxdump/analyzer/export_chat.py b/pywxdump/analyzer/export_chat.py index 4007454..2d2d9b0 100644 --- a/pywxdump/analyzer/export_chat.py +++ b/pywxdump/analyzer/export_chat.py @@ -227,7 +227,15 @@ def get_msg_list(MSG_db_path, selected_talker="", start_index=0, page_size=500): if cdnurl: content = {"src": cdnurl, "msg": "表情"} - elif type_id[0] == 49: + elif type_id == (49, 0): + BytesExtra = read_BytesExtra(BytesExtra) + url = match_BytesExtra(BytesExtra) + content["src"] = url + file_name = os.path.basename(url) + content["msg"] = file_name + + + elif type_id[0] == 49 and type_id[1] != 0: BytesExtra = read_BytesExtra(BytesExtra) url = match_BytesExtra(BytesExtra) content["src"] = url