增加图片显示
This commit is contained in:
1 parent
97188c63ca
commit
fcf799362a
4 files changed
+32
-3
No files matched your search
@@ -126,6 +126,8 @@ def get_msg_list(MSG_db_path, selected_talker="", start_index=0, page_size=500):
|
||||
match = re.search(r"FileStorage(.*?)'", BytesExtra)
|
||||
if match:
|
||||
img_path = match.group(0).replace("'", "")
|
||||
img_path = [i for i in img_path.split("\\") if i]
|
||||
img_path = os.path.join(*img_path)
|
||||
content["src"] = img_path
|
||||
else:
|
||||
content["src"] = ""
|
||||
|
||||
Reference in new issue
Block a user