Skip to content

利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.

add timeout

harry0521d4682632
diff --git a/app/services/material.py b/app/services/material.py
index e2a65cc6..2ef348ac 100644
--- a/app/services/material.py
+++ b/app/services/material.py
@@ -51,7 +51,7 @@ def search_videos(search_term: str,
logger.info(f"searching videos: {query_url}, with proxies: {proxies}")
try:
- r = requests.get(query_url, headers=headers, proxies=proxies, verify=False)
+ r = requests.get(query_url, headers=headers, proxies=proxies, verify=False, timeout=(30, 60))
response = r.json()
video_items = []
if "videos" not in response: