From 0bdd62264504921bce904a2481fb3bf05fd09c77 Mon Sep 17 00:00:00 2001 From: xingluo Date: Sun, 4 May 2025 18:36:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7afceee..355effe 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,24 @@ pip install -r requirements.txt ```bash python main.py --port 5000 ``` - +### 3. 指定公网地址 +```python + ##sanjuuni_utils.py + return { + 'status': 'success', + 'download_url': f"http://ffmpeg.liulikeji.cn/download/{output_id}/{output_filename}", #外部访问地址 + 'file_id': output_id, + 'temp_dir': temp_dir # 返回临时目录路径 + } + + ##ffmpeg_utils.py + return { + 'status': 'success', + 'download_url': f"http://ffmpeg.liulikeji.cn/download/{output_id}/{output_filename}", #外部访问地址 + 'file_id': output_id, + 'temp_dir': temp_dir # 返回临时目录路径 + } +``` --- ## ⏰ 自动缓存清理配置