rogerxavier commited on
Commit
702b29f
1 Parent(s): caf85c2

Update api.py

Browse files
Files changed (1) hide show
  1. api.py +2 -1
api.py CHANGED
@@ -129,7 +129,8 @@ def process_tasks_and_upload(file_list, bili_meta_data, cover_image, cover_path,
129
  cover_path_to_image = os.path.join(cover_path, "cover.jpg")
130
  cover_img_data.save(cover_path_to_image)
131
  print("cover_path_to_image是",cover_path_to_image)
132
- background_tasks.add_task(upload_video, bili_meta_data, cover_path_to_image)
 
133
 
134
 
135
 
 
129
  cover_path_to_image = os.path.join(cover_path, "cover.jpg")
130
  cover_img_data.save(cover_path_to_image)
131
  print("cover_path_to_image是",cover_path_to_image)
132
+ # background_tasks.add_task(upload_video, bili_meta_data, cover_path_to_image)
133
+ tasks.append(await upload_video(bili_meta_data, cover_path_to_image))
134
 
135
 
136