markdown file use local name after updown image

This commit is contained in:
2025-03-24 16:25:49 +08:00
parent 16192e00a2
commit 9b26587a41
2 changed files with 4 additions and 3 deletions

View File

@@ -187,8 +187,8 @@ def process_image_file(markdown_file_path):
# 构造新的文件名
file_name, file_ext = os.path.splitext(markdown_file_path)
new_file_path = f"{file_name}_lsky{file_ext}"
#new_file_path = f"{file_name}_lsky{file_ext}"
new_file_path = f"{file_name}{file_ext}"
# 保存为新文件
with open(new_file_path, 'w', encoding='utf-8') as file:
file.write(new_content)

View File

@@ -3,7 +3,8 @@ import requests
# 配置信息
local_image_folder = 'downloaded_images'
lsky_pro_url = 'http://192.168.107.248:18089/api/v1'
#lsky_pro_url = 'http://192.168.107.248:18089/api/v1'
lsky_pro_url = 'https://image.lqsjy.cn/api/v1'
upload_endpoint = '/upload'
token = '1|QJP2YEr9GIN52VBgmm5hCqV5DwBSvJLUKjnwcKB8'