Giter Site home page Giter Site logo

music's Introduction

音乐搜索器

GitHub release PHP version GitHub license

说明

⚠️ 本项目已暂停维护,存档代码仅供学习交流,不得用于商业用途

多站合一音乐搜索解决方案,支持搜索试听以下网站音乐:

网易云音乐 QQ音乐 酷狗音乐 酷我音乐 虾米音乐 百度音乐 一听音乐 咪咕音乐 荔枝FM 蜻蜓FM 喜马拉雅FM 全民K歌 5sing原创 5sing翻唱

数据调用的是各网站的 API 接口,有的接口并不是开放的,随时可能失效,本项目相关代码仅供参考。

演示

演示站点暂停维护,2018年11月01日起不再提供演示站点服务。

如果有需要改进的地方,欢迎提交 Pull Requests

下载

📦 下载开发版 📦 获取稳定版

解决方案

1. 提示数据获取失败

方案1:

修改 index.php 文件里的 MC_PROXY 为您的代理地址
将 core/music.php 里需要代理的 URL 'proxy' => false 改为 'proxy' => true

方案2:

在 core/music.php 里查找 setTimeout,将其后面的数值 20 改为更大。
在 static/js/music.js 里查找 `timeout`,将其数值 30000 改为更大。

方案3:

服务器要支持 curl。
更换服务器,选择延迟更低的服务器。

2. 播放器显示 Error happens ╥﹏╥

音乐链接为空

1. 音乐需要付费才能收听
2. 版权限制,外站无法获取
3. 服务器 IP 所在地不在源站允许的区域
4. 音乐下架了,链接被去除

音乐链接不为空

1. 当前 IP 所在地因版权限制而无法播放
2. 音乐格式浏览器无法正常解析

3. 国内接口优化

如果你的网站在国内,打开 /index.php,将 define('MC_INTERNAL', 0); 修改为 define('MC_INTERNAL', 1);,这样就可以取到咪咕和网易云音乐的 320k 音频了。

更新日志

请查看 CHANGELOG.md

免责声明

  1. 本站音频文件来自各网站接口,本站不会修改任何音频文件
  2. 音频版权来自各网站,本站只提供数据查询服务,不提供任何音频存储和贩卖服务
  3. 本项目代码仅供学习交流,不得用于商业用途,如有侵犯与代码贡献人员无关

开源协议

The MIT License (MIT)

music's People

Contributors

maicong avatar littlekingkong avatar

Watchers

James Cloos avatar

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.