From dcde619e77f54b6daa13c5ff02cbbb8c4be43925 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 21 Mar 2024 16:28:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=92=E4=BB=B6=E6=97=A5=E5=BF=97=E5=80=92?= =?UTF-8?q?=E5=BA=8F=20&=20=E8=A1=A5=E5=85=85=E5=AE=89=E8=A3=85=E7=89=88?= =?UTF-8?q?=E6=9C=ACWindows=E6=8C=87=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 ++- app/api/endpoints/system.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c2036f25..690d83f2 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,8 @@ MoviePilot需要配套下载器和媒体服务器配合使用。 - Windows - 下载 [MoviePilot.exe](https://github.com/jxxghp/MoviePilot/releases),双击运行后自动生成配置文件目录,访问:http://localhost:3000 + 1. 独立执行文件版本:下载 [MoviePilot.exe](https://github.com/jxxghp/MoviePilot/releases),双击运行后自动生成配置文件目录,访问:http://localhost:3000 + 2. 安装包版本:[Windows-MoviePilot](https://github.com/developer-wlj/Windows-MoviePilot) - 群晖套件 diff --git a/app/api/endpoints/system.py b/app/api/endpoints/system.py index 09b031cf..2c4859ef 100644 --- a/app/api/endpoints/system.py +++ b/app/api/endpoints/system.py @@ -191,6 +191,8 @@ def get_logging(token: str, length: int = 50, logfile: str = "moviepilot.log"): return Response(content="日志文件不存在!", media_type="text/plain") with open(log_path, 'r', encoding='utf-8') as file: text = file.read() + # 倒序输出 + text = '\n'.join(text.split('\n')[::-1]) return Response(content=text, media_type="text/plain") else: # 返回SSE流响应