mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-05-23 19:17:41 +08:00
chore: fix typo
This commit is contained in:
parent
12f9e90045
commit
f3676902d5
18
README.md
18
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本项目
|
||||
|
@ -25,7 +25,7 @@ jsd_mirror_list = [
|
||||
'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
|
||||
|
Loading…
x
Reference in New Issue
Block a user