From da9be3da4994b914f81630896d517ec6abe6dc66 Mon Sep 17 00:00:00 2001 From: ikun0014 Date: Wed, 14 Feb 2024 15:01:01 +0800 Subject: [PATCH 1/2] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0Docker=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E6=95=99=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 ++---------- README_EN.md | 12 ++---------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 5b3c276..f7480a6 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ linux 命令如果为 python3 请自行替换 环境要求:Docker -该方法**未经测试**,不知道需要的 Docker 版本,可以自己尝试现有的 Docker 版本是否可以使用 +该方法无法使用QRC解密库,本地歌曲需自行于容器中安装ffmpeg,后期改进,不知道需要的 Docker 版本,可以自己尝试现有的 Docker 版本是否可以使用 1. 更新软件包 @@ -127,17 +127,9 @@ linux 命令如果为 python3 请自行替换 3. 创建容器 ```bash - docker run --name lx-music-api-server-python -p 9763:9763 -d ikun0014/lx-music-api-server-python:latest + docker run --name lx-music-api-server-python -p 9763:9763 -v /root/lx-music-api-server-python:/app/data -d ikun0014/lx-music-api-server-python:latest ``` -4. 获取容器目录 - - ```bash - docker inspect lx-music-api-server-python - ``` - -5. 到容器目录里的 `/app` 目录填写 `config.json` - ## 📖返回码说明 接口返回值中`body.code`字段值中的代码含义 diff --git a/README_EN.md b/README_EN.md index c534e5b..1386415 100644 --- a/README_EN.md +++ b/README_EN.md @@ -108,7 +108,7 @@ If you are using linux, you command maybe python3, please replace it yourself. Required environment: Docker -This method **has not been tested**, and we don't know the required Docker version, so you can try whether the existing Docker version can be run by yourself. +This method cannot use the QRC decryption library, the local song needs to install ffmpeg in the container by itself, and later improved, I don't know the Docker version you need, you can try whether the existing Docker version can be used by yourself. 1. Update package @@ -125,17 +125,9 @@ This method **has not been tested**, and we don't know the required Docker versi 3. Create container ```bash - docker run --name lx-music-api-server-python -p 9763:9763 -d ikun0014/lx-music-api-server-python:latest + docker run --name lx-music-api-server-python -p 9763:9763 -v /root/lx-music-api-server-python:/app/data -d ikun0014/lx-music-api-server-python:latest ``` -4. Get container directory - - ```bash - docker inspect lx-music-api-server-python - ``` - -5. Go to the `/app` directory in the container directory and modify `config.json`. - ## 📖Return code description The code meaning in the `body.code` field value in the interface return value. From 6c33f5971a1967efe21a75893152ecab48548c2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=93=E6=BE=84qwq?= Date: Wed, 14 Feb 2024 15:12:55 +0800 Subject: [PATCH 2/2] docs: improve translation --- README_EN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README_EN.md b/README_EN.md index 1386415..900be8e 100644 --- a/README_EN.md +++ b/README_EN.md @@ -108,7 +108,7 @@ If you are using linux, you command maybe python3, please replace it yourself. Required environment: Docker -This method cannot use the QRC decryption library, the local song needs to install ffmpeg in the container by itself, and later improved, I don't know the Docker version you need, you can try whether the existing Docker version can be used by yourself. +This method cannot load the QRC decryption library, the local song requires ffmpeg installed in the container , and this will be improved later, 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