Skip to content

Commit

Permalink
docs: 为什么不改README😡
Browse files Browse the repository at this point in the history
  • Loading branch information
ikun0014 committed Jun 15, 2024
1 parent bdf03db commit 2e67b19
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 93 deletions.
65 changes: 17 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@

<div align="center">

![lx-music-api-server-python](https://socialify.git.ci/lxmusics/lx-music-api-server-python/image?description=1&forks=1&issues=1&logo=https%3A%2F%2Fraw.githubusercontent.com%2Flxmusics%2Flx-music-api-server-python%2Fmain%2Ficon.png&owner=1&pulls=1&stargazers=1&theme=Auto)
![lx-music-api-server](https://socialify.git.ci/MeoProject/lx-music-api-server/image?description=1&forks=1&issues=1&logo=https%3A%2F%2Fraw.githubusercontent.com%2FMeoProject%2Flx-music-api-server%2Fmain%2Ficon.png&owner=1&pulls=1&stargazers=1&theme=Auto)

![GitHub Repo Size](https://img.shields.io/github/repo-size/lxmusics/lx-music-api-server-python?style=for-the-badge)
[![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/lxmusics/lx-music-api-server-python/build_beta.yml?style=for-the-badge)](https://github.com/lxmusics/lx-music-api-server-python/actions/workflows/build_beta.yml)
[![GitHub Release (with filter)](https://img.shields.io/github/v/release/lxmusics/lx-music-api-server-python?style=for-the-badge)](https://github.com/lxmusics/lx-music-api-server-python/releases/latest)
[![GitHub All Releases](https://img.shields.io/github/downloads/lxmusics/lx-music-api-server-python/total?style=for-the-badge&color=violet)](https://github.com/lxmusics/lx-music-api-server-python/releases)
[![GitHub License](https://img.shields.io/github/license/lxmusics/lx-music-api-server-python?style=for-the-badge)](https://github.com/lxmusics/lx-music-api-server/blob/main/LICENSE)
![GitHub Repo Size](https://img.shields.io/github/repo-size/MeoProject/lx-music-api-server?style=for-the-badge)
[![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/MeoProject/lx-music-api-server/build_beta.yml?style=for-the-badge)](https://github.com/MeoProject/lx-music-api-server/actions/workflows/build_beta.yml)
[![GitHub Release (with filter)](https://img.shields.io/github/v/release/MeoProject/lx-music-api-server?style=for-the-badge)](https://github.com/MeoProject/lx-music-api-server/releases/latest)
[![GitHub All Releases](https://img.shields.io/github/downloads/MeoProject/lx-music-api-server/total?style=for-the-badge&color=violet)](https://github.com/MeoProject/lx-music-api-server/releases)
[![GitHub License](https://img.shields.io/github/license/MeoProject/lx-music-api-server?style=for-the-badge)](https://github.com/MeoProject/lx-music-api-server/blob/main/LICENSE)

</div>

原仓库:[lx-music-api-server](https://github.com/lxmusics/lx-music-api-server)
你可以在原仓库中找到对应的可用源脚本
本项目[文档](https://apidoc.zcmonety.xyz)

由于使用此项目导致的**封号**等情况**与本项目无关**

Expand All @@ -36,8 +35,8 @@

### Release 部署(推荐)

1.[Releases](https://github.com/lxmusics/lx-music-api-server-python/releases)
[Actions](https://github.com/lxmusics/lx-music-api-server-python/actions)
1.[Releases](https://github.com/MeoProject/lx-music-api-server/releases)
[Actions](https://github.com/MeoProject/lx-music-api-server/actions)
下载对应你系统的可执行文件 (从 GitHub Actions 下载需要登录 GitHub 账号)

2. 运行可执行文件(如果下载的文件是压缩包请先解压)
Expand All @@ -57,8 +56,8 @@
2. clone本项目并进入项目目录

```bash
git clone https://github.com/lxmusics/lx-music-api-server-python.git
cd lx-music-api-server-python
git clone https://github.com/MeoProject/lx-music-api-server.git
cd lx-music-api-server
```

3. 安装依赖
Expand Down Expand Up @@ -87,8 +86,8 @@ linux 命令如果为 python3 请自行替换
1. clone本项目并进入项目目录

```bash
git clone https://github.com/lxmusics/lx-music-api-server-python.git
cd lx-music-api-server-python
git clone https://github.com/MeoProject/lx-music-api-server.git
cd lx-music-api-server
```

2. 安装依赖
Expand All @@ -103,36 +102,6 @@ linux 命令如果为 python3 请自行替换
python main.py
```

---

### Docker 部署

环境要求:Docker

不知道需要的 Docker 版本,可以自己尝试现有的 Docker 版本是否可以使用

1. 更新软件包

```bash
sudo apt-get update
```

2. 安装Docker,已有跳过

```bash
sudo apt-get install -y docker.io
```

3. 创建容器

```bash
docker run --name lx-music-api-server -p 9763:9763 -v /root/lx-music-api-server/config:/app/server/config -v /root/lx-music-api-server/logs:/app/server/logs -v /root/lx-music-api-server/audio:/app/server/audio --restart always -d ikun0014/lx-music-api-docker
```

4. 填写配置

前往/root/lx-music-api-server/config填写 (权限不足可修改创建容器命令)

## 📖返回码说明

接口返回值中`body.code`字段值中的代码含义
Expand Down Expand Up @@ -237,7 +206,7 @@ linux 命令如果为 python3 请自行替换
4. 模块不拆分
详见[config.py](https://github.com/lxmusics/lx-music-api-server-python/tree/main/common/config.py)
详见[config.py](https://github.com/MeoProject/lx-music-api-server/tree/main/common/config.py)
5. 不明所以的变量名
Expand All @@ -254,7 +223,7 @@ linux 命令如果为 python3 请自行替换
## 📄项目协议
本项目基于 [MIT](https://github.com/lxmusics/lx-music-api-server/blob/main/LICENSE) 许可证发行,以下协议是对于 MIT 原协议的补充,如有冲突,以以下协议为准。
本项目基于 [MIT](https://github.com/MeoProject/lx-music-api-server/blob/main/LICENSE) 许可证发行,以下协议是对于 MIT 原协议的补充,如有冲突,以以下协议为准。
词语约定:本协议中的“本项目”指本音源项目;“使用者”指签署本协议的使用者;“官方音乐平台”指对本项目内置的包括酷我、酷狗、咪咕等音乐源的官方平台统称;“版权数据”指包括但不限于图像、音频、名字等在内的他人拥有所属版权的数据。
Expand All @@ -274,8 +243,8 @@ folltoshe+foxmail.com
## ✨Star 趋势图
[![Stargazers over time](https://starchart.cc/lxmusics/lx-music-api-server-python.svg)](https://starchart.cc/lxmusics/lx-music-api-server-python)
[![Stargazers over time](https://starchart.cc/MeoProject/lx-music-api-server.svg)](https://starchart.cc/MeoProject/lx-music-api-server)
## ⚙️贡献者
[![Contributor](https://contrib.rocks/image?repo=lxmusics/lx-music-api-server-python)](https://github.com/lxmusics/lx-music-api-server-python/graphs/contributors)
[![Contributor](https://contrib.rocks/image?repo=MeoProject/lx-music-api-server)](https://github.com/MeoProject/lx-music-api-server/graphs/contributors)
60 changes: 16 additions & 44 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,16 @@ English | [简体中文](README.md)

<div align="center">

![lx-music-api-server-python](https://socialify.git.ci/lxmusics/lx-music-api-server-python/image?description=1&forks=1&issues=1&logo=https%3A%2F%2Fraw.githubusercontent.com%2Flxmusics%2Flx-music-api-server-python%2Fmain%2Ficon.png&owner=1&pulls=1&stargazers=1&theme=Auto)
![lx-music-api-server](https://socialify.git.ci/MeoProject/lx-music-api-server/image?description=1&forks=1&issues=1&logo=https%3A%2F%2Fraw.githubusercontent.com%2FMeoProject%2Flx-music-api-server%2Fmain%2Ficon.png&owner=1&pulls=1&stargazers=1&theme=Auto)

![GitHub Repo Size](https://img.shields.io/github/repo-size/lxmusics/lx-music-api-server-python?style=for-the-badge)
[![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/lxmusics/lx-music-api-server-python/build_beta.yml?style=for-the-badge)](https://github.com/lxmusics/lx-music-api-server-python/actions/workflows/build_beta.yml)
[![GitHub Release (with filter)](https://img.shields.io/github/v/release/lxmusics/lx-music-api-server-python?style=for-the-badge)](https://github.com/lxmusics/lx-music-api-server-python/releases/latest)
[![GitHub All Releases](https://img.shields.io/github/downloads/lxmusics/lx-music-api-server-python/total?style=for-the-badge&color=violet)](https://github.com/lxmusics/lx-music-api-server-python/releases)
[![GitHub License](https://img.shields.io/github/license/lxmusics/lx-music-api-server-python?style=for-the-badge)](https://github.com/lxmusics/lx-music-api-server/blob/main/LICENSE)
![GitHub Repo Size](https://img.shields.io/github/repo-size/MeoProject/lx-music-api-server?style=for-the-badge)
[![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/MeoProject/lx-music-api-server/build_beta.yml?style=for-the-badge)](https://github.com/MeoProject/lx-music-api-server/actions/workflows/build_beta.yml)
[![GitHub Release (with filter)](https://img.shields.io/github/v/release/MeoProject/lx-music-api-server?style=for-the-badge)](https://github.com/MeoProject/lx-music-api-server/releases/latest)
[![GitHub All Releases](https://img.shields.io/github/downloads/MeoProject/lx-music-api-server/total?style=for-the-badge&color=violet)](https://github.com/MeoProject/lx-music-api-server/releases)
[![GitHub License](https://img.shields.io/github/license/MeoProject/lx-music-api-server?style=for-the-badge)](https://github.com/MeoProject/lx-music-api-server/blob/main/LICENSE)

</div>

Original Repo: [lx-music-api-server](https://github.com/lxmusics/lx-music-api-server)
You can find the corresponding available source scripts in the original repository.
This project [Document](https://apidoc.zcmonety.xyz)

**Ban** and other situations caused by the use of this project have **nothing** to do with this project.

Expand All @@ -36,7 +34,7 @@ You can find the corresponding available source scripts in the original reposito

### Use Release (recommended)

1. Download the executable file corresponding to your system from [Releases](https://github.com/lxmusics/lx-music-api-server-python/releases) or [Actions](https://github.com/lxmusics/lx-music-api-server-python/actions)
1. Download the executable file corresponding to your system from [Releases](https://github.com/MeoProject/lx-music-api-server/releases) or [Actions](https://github.com/MeoProject/lx-music-api-server/actions)

2. Run the downloaded executable file (maybe you need to unzip the downloaded file if it is a compressed files)

Expand All @@ -55,8 +53,8 @@ Required environment: Python 3.8+
2. Clone this project and enter the project directory

```bash
git clone https://github.com/lxmusics/lx-music-api-server-python.git
cd lx-music-api-server-python
git clone https://github.com/MeoProject/lx-music-api-server.git
cd lx-music-api-server
```

3. Install requirements
Expand Down Expand Up @@ -85,8 +83,8 @@ If you are using linux, you command maybe python3, please replace it yourself.
1. Clone this project and enter the project directory

```bash
git clone https://github.com/lxmusics/lx-music-api-server-python.git
cd lx-music-api-server-python
git clone https://github.com/MeoProject/lx-music-api-server.git
cd lx-music-api-server
```

2. Install requirements
Expand All @@ -101,32 +99,6 @@ If you are using linux, you command maybe python3, please replace it yourself.
python main.py
```

---

### Use Docker

Required environment: Docker

We don't know the Docker version you need, you can try whether the existing Docker version can be used by yourself.
1. Update package
```bash
sudo apt-get update
```
2. install Docker (skip if you already have it)
```bash
sudo apt-get install -y docker.io
```
3. Create container
```bash
docker run --name lx-music-api-server-python -p 9763:9763 -v /root/lx-music-api-server-python/config:/work/config -v /root/lx-music-api-server-python/logs:/work/logs --restart always -d ikun0014/lx-music-api-docker
```
## 📖Return code description

The code meaning in the `body.code` field value in the interface return value.
Expand Down Expand Up @@ -231,7 +203,7 @@ The code meaning of `statuscode` returned by the interface.
4. Module does not split
Details at [config.py](https://github.com/lxmusics/lx-music-api-server-python/tree/main/common/config.py)
Details at [config.py](https://github.com/MeoProject/lx-music-api-server/tree/main/common/config.py)
5. Unknown variable name
Expand All @@ -248,7 +220,7 @@ The code meaning of `statuscode` returned by the interface.
## 📄Project agreement
This project is issued under [MIT](https://github.com/lxmusics/lx-music-api-server/blob/main/LICENSE) license. The following agreement is a supplement to the original MIT agreement. In case of conflict, the following agreement shall prevail.
This project is issued under [MIT](https://github.com/MeoProject/lx-music-api-server/blob/main/LICENSE) license. The following agreement is a supplement to the original MIT agreement. In case of conflict, the following agreement shall prevail.
Word agreement: "this project" in this agreement refers to this audio source project; "User" means the user who signed this Agreement; "Official Music Platform" refers to the official platforms built in this project, including Cool Me, Cool Dog, Mi Gu and other music sources; "Copyright data" refers to data of which others have copyright, including but not limited to images, audio, names, etc.
Expand All @@ -268,8 +240,8 @@ folltoshe+foxmail.com
## ✨Star trend chart
[![Stargazers over time](https://starchart.cc/lxmusics/lx-music-api-server-python.svg)](https://starchart.cc/lxmusics/lx-music-api-server-python)
[![Stargazers over time](https://starchart.cc/MeoProject/lx-music-api-server.svg)](https://starchart.cc/MeoProject/lx-music-api-server)
## ⚙️Contributor
[![Contributor](https://contrib.rocks/image?repo=lxmusics/lx-music-api-server-python)](https://github.com/lxmusics/lx-music-api-server-python/graphs/contributors)
[![Contributor](https://contrib.rocks/image?repo=MeoProject/lx-music-api-server)](https://github.com/MeoProject/lx-music-api-server/graphs/contributors)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "lx-music-api-server-python",
"name": "lx-music-api-server",
"version": "2.0.0.beta-11",
"description": "一个适配 LX Music 的 API 后端实现",
"scripts": {
Expand Down

0 comments on commit 2e67b19

Please sign in to comment.