Commit 38862d9e by ‘chizw’

[+]域名映射

1 parent bf6132af
...@@ -156,9 +156,6 @@ def replace_domain_in_url(url): ...@@ -156,9 +156,6 @@ def replace_domain_in_url(url):
return url return url
print(replace_domain_in_url("https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_17342363233946695_1734235809700833.mp3"))
def deal_worker(task_id: str): def deal_worker(task_id: str):
""" """
要执行的函数,在子进程中运行 要执行的函数,在子进程中运行
...@@ -182,6 +179,7 @@ def deal_worker(task_id: str): ...@@ -182,6 +179,7 @@ def deal_worker(task_id: str):
if url == "" or len(url) < 1 or not url.startswith("http"): if url == "" or len(url) < 1 or not url.startswith("http"):
funasr_db.update_ali_asr_model_res_skip(task_id) funasr_db.update_ali_asr_model_res_skip(task_id)
return return
url = replace_domain_in_url(url)
log.info(f"Worker {task_id} is running... url:{url}") log.info(f"Worker {task_id} is running... url:{url}")
consuming_start_time = time.perf_counter() consuming_start_time = time.perf_counter()
# 解析音频 # 解析音频
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!