GithubHelp home page GithubHelp logo

lx-music-api-server's Introduction

lx-music-api-server-python

本项目已经迁移,地址见下面链接

仓库地址

Python 版

一个他人维护的Golang版本

交流群

QQ

群号: 206995059

点击添加

Telegram

点击添加

使用音源

  1. 搭建服务器,并按照要求进行配置
  2. 下载项目目录下的lx-music-source-example.js文件
  3. 打开你下载的lx-music-source-example.js,修改脚本中的API_URL和API_KEY为你自己搭建的或者你从别处获取的
  4. 保存文件,将这个JS文件导入LX Music中
  5. 享受畅快的听歌之旅

项目协议

本项目基于 MIT 许可证发行,以下协议是对于 MIT 原协议的补充,如有冲突,以以下协议为准。

词语约定:本协议中的“本项目”指本音源项目;“使用者”指签署本协议的使用者;“官方音乐平台”指对本项目内置的包括酷我、酷狗、咪咕等音乐源的官方平台统称;“版权数据”指包括但不限于图像、音频、名字等在内的他人拥有所属版权的数据。

  1. 本项目的数据来源原理是从各官方音乐平台的公开服务器中拉取数据,经过对数据简单地筛选与合并后进行展示,因此本项目不对数据的准确性负责。
  2. 使用本项目的过程中可能会产生版权数据,对于这些版权数据,本项目不拥有它们的所有权,为了避免造成侵权,使用者务必在24 小时内清除使用本项目的过程中所产生的版权数据。
  3. 由于使用本项目产生的包括由于本协议或由于使用或无法使用本项目而引起的任何性质的任何直接、间接、特殊、偶然或结果性损害(包括但不限于因商誉损失、停工、计算机故障或故障引起的损害赔偿,或任何及所有其他商业损害或损失)由使用者负责。
  4. 本项目完全免费,且开源发布于 GitHub 面向全世界人用作对技术的学习交流,本项目不对项目内的技术可能存在违反当地法律法规的行为作保证,禁止在违反当地法律法规的情况下使用本项目,对于使用者在明知或不知当地法律法规不允许的情况下使用本项目所造成的任何违法违规行为由使用者承担,本项目不承担由此造成的任何直接、间接、特殊、偶然或结果性责任。

若你使用了本项目,将代表你接受以上协议。

音乐平台不易,请尊重版权,支持正版。
本项目仅用于对技术可行性的探索及研究,不接受任何商业(包括但不限于广告等)合作及捐赠。
若对此有疑问请 mail to:
helloplhm-qwq+outlook.com
(请将+替换成@)

lx-music-api-server's People

Contributors

folltoshe avatar helloplhm-qwq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

lx-music-api-server's Issues

代码可能存在书写不规范导致Python运行报错

运行报错

"E:\lx-music-api-server\python\main.py", line 21, in <module>
    from common import config
  File "E:\lx-music-api-server\python\common\config.py", line 56    
    "key": {
           ^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
  • 根据报错信息,问题似乎出现在 "config.py" 文件的第 56 行,提示缺少逗号。这个错误通常发生在字典或列表中的最后一个元素后面缺少逗号。请检查 "config.py" 文件的第 56 行,并确保在 "key" 字典的最后一个元素后面添加逗号“ ,”
  • 原代码
"key": {
    "enable": False,
    "_enable-desc": "是否开启请求key,开启后只有请求头中包含key,且值一样时可以访问API",
    "ban": True,
    "value": "114514",
}
"whitelist_host": [
    "localhost",
    "0.0.0.0",
    "127.0.0.1",
],
  • 代码书写不规范导致的BUG(修复)
"key": {
    "enable": False,
    "_enable-desc": "是否开启请求key,开启后只有请求头中包含key,且值一样时可以访问API",
    "ban": True,
    "value": "114514",
},
"whitelist_host": [
    "localhost",
    "0.0.0.0",
    "127.0.0.1",
],

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.