mirror of
https://github.com/LC044/WeChatMsg
synced 2025-02-21 18:12:18 +08:00
修复语音相对路径问题
This commit is contained in:
parent
5f519dc95d
commit
9bea95f688
@ -298,6 +298,7 @@ class ChildThread(QThread):
|
|||||||
modify_audio_metadata(audio_path, displayname)
|
modify_audio_metadata(audio_path, displayname)
|
||||||
os.utime(audio_path, (timestamp, timestamp))
|
os.utime(audio_path, (timestamp, timestamp))
|
||||||
audio_path = audio_path.replace('\\', '/')
|
audio_path = audio_path.replace('\\', '/')
|
||||||
|
audio_path = "./voice/" + os.path.basename(audio_path)
|
||||||
voice_to_text = escape_js_and_html(media_msg_db.get_audio_text(str_content))
|
voice_to_text = escape_js_and_html(media_msg_db.get_audio_text(str_content))
|
||||||
except:
|
except:
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user