Commit 2e6d0910 by baiquan

使用多线程上传视频切片

parent 1505180d
......@@ -8,7 +8,7 @@ from service.doudian_service import generate_a_bogus, get_schema, create_global_
from service.hub_ import closeBrowser
from service.login import login
from service.sync_shop import syncShop, syncShopInfo
from service.upload_video import upload_video
from service.upload_video import upload_video_with_multithreading
from utils.errors import AppError
......@@ -136,7 +136,7 @@ def execute_doudian_login(account: str, password: str, headers: dict, proxies: d
def execute_doudian_upload_video(task: dict):
"""上传视频"""
try:
result = upload_video(task)
result = upload_video_with_multithreading(task)
logger.success(f'视频上传成功-->{result}')
return {
'code': 200,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment