From 8c5b99d438e9b709697b8144dfa80fccfd2a734e Mon Sep 17 00:00:00 2001 From: xaoyo Date: Wed, 27 Sep 2023 21:12:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96MSG=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E8=A7=A3=E6=9E=90=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parse_db/parse.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/parse_db/parse.py b/parse_db/parse.py index bf758ee..6f51f30 100644 --- a/parse_db/parse.py +++ b/parse_db/parse.py @@ -113,6 +113,7 @@ def read_img_dat(input_data): md5 = get_md5(out_bytes) return fomt, md5, out_bytes + def read_emoji(cdnurl, is_show=False): headers = { "User-Agent": "Mozilla/5.0 (Linux; Android 10; Redmi K30 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Mobile Safari/537.36" @@ -229,11 +230,8 @@ def read_audio(MsgSvrID, is_play=False, is_wave=False, DB_PATH: str = "", rate=2 if len(DBdata) == 0: return False - data = DBdata[0][0] # [1:] + b'\xFF\xFF' - pcm_data = read_audio_buf(data, is_play, is_wave, rate) - return pcm_data