From 46bce0dee802a52d8341b1900352b25d5bd85672 Mon Sep 17 00:00:00 2001 From: CI Bot Date: Thu, 17 Sep 2026 06:19:31 +0000 Subject: [PATCH] style: auto-format with black + isort + ruff + prettier [skip ci-format-check] --- apps/api/app/api/routes/scripts_ai.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/app/api/routes/scripts_ai.py b/apps/api/app/api/routes/scripts_ai.py index 6c73eb8b8..fc48dc10d 100644 --- a/apps/api/app/api/routes/scripts_ai.py +++ b/apps/api/app/api/routes/scripts_ai.py @@ -307,7 +307,7 @@ def _fetch_ttwid(): # 方式一:直接调 ttwid 注册接口 try: with httpx.Client(timeout=8, follow_redirects=True, verify=False) as http: - r = http.post( + http.post( "https://ttwid.bytedance.com/ttwid/union/register/", json={ "region": "cn", @@ -717,7 +717,7 @@ def _ytdlp_download_and_local_asr(page_url, temp_dir, cookiefile=None): cookie_files_to_try.append(cookiefile) # 2. 合成 cookie 重试(复用 _ytdlp_extract 的 cookie 生成逻辑,8次重试) - import secrets, time as _time + import time as _time ttwid = _fetch_ttwid() for i in range(8): if i % 3 == 0: