chore: fix typo

This commit is contained in:
helloplhm-qwq 2024-01-07 13:22:58 +08:00
parent 12f9e90045
commit f3676902d5
No known key found for this signature in database
GPG Key ID: 6BE1B64B905567C7
2 changed files with 14 additions and 8 deletions

View File

@ -29,12 +29,18 @@
pip install poetry 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 ```bash
poetry install poetry install
``` ```
3. 启动 4. 启动
```bash ```bash
poetry shell # 进入poetry环境 poetry shell # 进入poetry环境
python main.py # 运行项目 python main.py # 运行项目
@ -42,10 +48,10 @@ python main.py # 运行项目
### 直接部署 ### 直接部署
环境要求Python 3.6+, 建议Python 3.8+ 环境要求Python 3.6+, 建议Python 3.8+
没有其他限制,能用 Python 理论上就能跑起来 没有其他限制,能用 Python 理论上就能跑起来
flask版本即将停止支持不建议使用 flask版本即将停止支持不建议使用
测试版本部署linux 命令如果为 python3 请自行替换: 测试版本部署linux 命令如果为 python3 请自行替换:
```bash ```bash
git clone https://github.com/lxmusics/lx-music-api-server-python.git # clone本项目 git clone https://github.com/lxmusics/lx-music-api-server-python.git # clone本项目

View File

@ -25,7 +25,7 @@ jsd_mirror_list = [
'https://jsd.cdn.zzko.cn', 'https://jsd.cdn.zzko.cn',
'https://jsdelivr.b-cdn.net', 'https://jsdelivr.b-cdn.net',
] ]
githun_raw_mirror_list = [ github_raw_mirror_list = [
'https://raw.githubusercontent.com', 'https://raw.githubusercontent.com',
'https://mirror.ghproxy.com/https://raw.githubusercontent.com', 'https://mirror.ghproxy.com/https://raw.githubusercontent.com',
'https://ghraw.gkcoll.xyz', 'https://ghraw.gkcoll.xyz',
@ -47,7 +47,7 @@ async def get_response(retry = 0):
if (i < 5): if (i < 5):
req = await Httpx.AsyncRequest(jsd_mirror_list[retry] + jsdbaseurl) req = await Httpx.AsyncRequest(jsd_mirror_list[retry] + jsdbaseurl)
elif (i < 11): 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('/*!')): if (not req.text.startswith('/*!')):
logger.info('疑似请求到了无效的内容,忽略') logger.info('疑似请求到了无效的内容,忽略')
raise Exception from None raise Exception from None