From f3676902d556e1053417c869d9ce19262e678468 Mon Sep 17 00:00:00 2001 From: helloplhm-qwq Date: Sun, 7 Jan 2024 13:22:58 +0800 Subject: [PATCH] chore: fix typo --- README.md | 18 ++++++++++++------ common/lx_script.py | 4 ++-- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 0f77fbf..7c9321d 100644 --- a/README.md +++ b/README.md @@ -29,12 +29,18 @@ pip install poetry ``` -2. 安装依赖 +2. clone本项目 +```bash +git clone https://github.com/lxmusics/lx-music-api-server-python.git +cd lx-music-api-server-python +``` + +3. 安装依赖 ```bash poetry install ``` -3. 启动 +4. 启动 ```bash poetry shell # 进入poetry环境 python main.py # 运行项目 @@ -42,10 +48,10 @@ python main.py # 运行项目 ### 直接部署 -环境要求:Python 3.6+, 建议Python 3.8+ -没有其他限制,能用 Python 理论上就能跑起来 -flask版本即将停止支持,不建议使用 -测试版本部署,linux 命令如果为 python3 请自行替换: +环境要求:Python 3.6+, 建议Python 3.8+ +没有其他限制,能用 Python 理论上就能跑起来 +flask版本即将停止支持,不建议使用 +测试版本部署,linux 命令如果为 python3 请自行替换: ```bash git clone https://github.com/lxmusics/lx-music-api-server-python.git # clone本项目 diff --git a/common/lx_script.py b/common/lx_script.py index 2cc4a1e..7926203 100644 --- a/common/lx_script.py +++ b/common/lx_script.py @@ -25,7 +25,7 @@ 'https://jsd.cdn.zzko.cn', 'https://jsdelivr.b-cdn.net', ] -githun_raw_mirror_list = [ +github_raw_mirror_list = [ 'https://raw.githubusercontent.com', 'https://mirror.ghproxy.com/https://raw.githubusercontent.com', 'https://ghraw.gkcoll.xyz', @@ -47,7 +47,7 @@ async def get_response(retry = 0): if (i < 5): req = await Httpx.AsyncRequest(jsd_mirror_list[retry] + jsdbaseurl) elif (i < 11): - req = await Httpx.AsyncRequest(githun_raw_mirror_list[retry - 5] + baseurl) + req = await Httpx.AsyncRequest(github_raw_mirror_list[retry - 5] + baseurl) if (not req.text.startswith('/*!')): logger.info('疑似请求到了无效的内容,忽略') raise Exception from None