Code Monkey home page Code Monkey logo

music's Introduction

麦葱特制多站合一音乐搜索解决方案

(๑•̀ㅂ•́)و✧

可搜索试听网易云音乐、QQ音乐、酷狗音乐、酷我音乐、虾米音乐、百度音乐、一听音乐、咪咕音乐、5sing原创音乐、SoundCloud。

数据调用的是各音频网站 JSON 接口!

问我怎么来的?噗,抓包发现的。。。

有的接口并不是开放的 API 接口,随时可能失效,所以本项目相关代码仅供参考。

Demo / 演示

http://music.2333.me/

如果获取失败什么的,可以到 我的博客 留言告诉我。

更新日志

  • 2017.05.19 v1.1.5 修复 网易云音乐 音乐链接失效问题
  • 2017.04.28 v1.1.4 更新 QQ 音乐 API 接口,优化代码
  • 2017.04.21 v1.1.3 优化代码和播放器视觉
  • 2017.04.20 v1.1.2 更新音乐地址匹配规则
  • 2017.03.24 v1.1.1 移除对天天动听的支持,修复无法获取咪咕音乐的问题,更新 SoundCloud client_id
  • 2017.03.23 v1.1.0 更新外链资源地址,优化代码
  • 2015.06.15 v1.0.4 增加对 SoundCloud 的支持,增加代理支持,修复音乐名称识别问题,优化代码
  • 2015.06.13 v1.0.3 增加对 天天动听、咪咕 的支持
  • 2015.06.12 v1.0.2 增加对 5sing 的支持 (开源发布)
  • 2015.06.12 v1.0.1 代码优化 + BUG修复
  • 2015.06.10 v1.0.0 音乐搜索器上线

数据获取失败解决方案

方案1:

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

方案2:

在 music.php 里查找 setTimeout,将其后面的数值 20 改为更大。
在 static/music.js 里查找 data: post_data,将其上面的数值 30000 改为更大。

方案3:

更换服务器,选择延迟更低的服务器。

开源协议

The MIT License (MIT)

Copyright (c) 2015 Maicong

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

music's People

Contributors

maicong avatar

Watchers

 avatar  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.