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
10
README.md
10
README.md
@ -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 # 运行项目
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user