Commit
•
5c4b3a4
1
Parent(s):
df66546
Update api.py
Browse files
api.py
CHANGED
@@ -107,12 +107,13 @@ async def execute_all_task(background_tasks: BackgroundTasks, file_list: List[st
|
|
107 |
bili_meta_data: dict = None, cover_image: UploadFile = File(...), mp4_out_file: str = 'mp4_out/output.mp4',
|
108 |
allow_submit: bool = False, cover_path: str = '/cover'
|
109 |
):
|
|
|
110 |
|
111 |
background_tasks.add_task(process_tasks_and_upload, file_list, bili_meta_data, cover_image, cover_path,background_tasks)
|
112 |
return {"message": "提交成功"}
|
113 |
|
114 |
def process_tasks_and_upload(file_list, bili_meta_data, cover_image, cover_path,background_tasks):
|
115 |
-
|
116 |
tasks = []
|
117 |
for file_name in file_list:
|
118 |
tasks.append(file_executer(file_name))
|
|
|
107 |
bili_meta_data: dict = None, cover_image: UploadFile = File(...), mp4_out_file: str = 'mp4_out/output.mp4',
|
108 |
allow_submit: bool = False, cover_path: str = '/cover'
|
109 |
):
|
110 |
+
print("获取到的用户bili_meta_data是:",bili_meta_data)
|
111 |
|
112 |
background_tasks.add_task(process_tasks_and_upload, file_list, bili_meta_data, cover_image, cover_path,background_tasks)
|
113 |
return {"message": "提交成功"}
|
114 |
|
115 |
def process_tasks_and_upload(file_list, bili_meta_data, cover_image, cover_path,background_tasks):
|
116 |
+
|
117 |
tasks = []
|
118 |
for file_name in file_list:
|
119 |
tasks.append(file_executer(file_name))
|