Peach: Local-first video metadata scraper and media manager.
fix(release): 发布流程缺 httpx 时源码获取退回标准库
longmeidaob8854f31561b
diff --git a/scripts/fetch_ffmpeg_sources.py b/scripts/fetch_ffmpeg_sources.pyindex cb5255cc0..39dab2933 100644--- a/scripts/fetch_ffmpeg_sources.py+++ b/scripts/fetch_ffmpeg_sources.py@@ -20,12 +20,12 @@ import zipfileSCRIPT_DIR = Path(__file__).resolve().parentsys.path.insert(0, str(SCRIPT_DIR.parent / "src"))from peach.user_agent import USER_AGENT-if (SCRIPT_DIR.parent / "src/peach/peach_proxy.py").is_file():+try:import httpxfrom peach.peach_proxy import http_clientHTTP_ERRORS = (httpx.HTTPError,)-else:- # 对应源码归档可独立构建,归档不包含 Peach 应用或它的代理配置。+except ImportError:+ # 对应源码归档不含 Peach 代理配置,发布流程的系统 python3 也没有 httpx,都用标准库下载。http_client = NoneHTTP_ERRORS = ()