Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
helloplhm-qwq committed Jan 7, 2024
1 parent 12f9e90 commit f367690
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,29 @@
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 # 运行项目
```

### 直接部署

环境要求: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本项目
Expand Down
4 changes: 2 additions & 2 deletions common/lx_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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
Expand Down

0 comments on commit f367690

Please sign in to comment.