|
@@ -29,10 +29,11 @@ POOL_SIZE = int(config.getConfigValue("video_extract_pool_size"))
|
|
|
BATCH_SIZE = int(config.getConfigValue("video_extract_batch_size"))
|
|
|
|
|
|
|
|
|
-def download_file(pq_vid, video_url):
|
|
|
+def download_file(pq_vid, oss_path):
|
|
|
"""
|
|
|
下载视频文件
|
|
|
"""
|
|
|
+ video_url = "https://rescdn.yishihui.com/" + oss_path
|
|
|
file_name = "static/{}.mp4".format(pq_vid)
|
|
|
if os.path.exists(file_name):
|
|
|
return file_name
|