mirror of
https://github.com/Hommy-master/capcut-mate.git
synced 2026-08-30 17:48:47 +08:00
草稿更新失败了,不进行渲染操作。
This commit is contained in:
@@ -263,9 +263,10 @@ def download_single_file(file_url: str, target_dir: str) -> bool:
|
||||
# 写入文件
|
||||
safe_write_file(full_file_path, response.content, is_binary=True)
|
||||
|
||||
# 如果是JSON文件,修改其中的路径
|
||||
# 如果是JSON文件,修改其中的路径;更新失败则本次下载失败(不应继续导出)
|
||||
if full_file_path.endswith(('draft_info.json', 'draft_content.json')):
|
||||
update_json_file_paths(full_file_path, target_dir, url_draft_id)
|
||||
if not update_json_file_paths(full_file_path, target_dir, url_draft_id):
|
||||
return False
|
||||
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user