liu9293 / musicapi Goto Github PK
View Code? Open in Web Editor NEWCentralized package to get data from qq, xiami, netease music
Centralized package to get data from qq, xiami, netease music
最近发现网易云音乐的所有接口都已经无法使用,QQ音乐和虾米音乐可以继续使用
Example URL appear build error.
从虾米和网易获取的结果都能正常显示韩文,QQ音乐却不行。这应该是QQ的问题,不知道有没有办法解析那些数据(比如 노라조)。
在虾米网站上不登陆也能播放,但无法通过接口获取下载地址。
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/29
在header 加入
'X-Real-IP':'211.161.244.70' //任意国内IP
Filter album suggest search on the basis of country eg. Europe,Japan etc
qq音乐接口,当通过一个歌曲的id来获取它的链接的时候,后台返回{"success":false,"message":{}}
得不到音乐链接。
虾米音乐通过一个歌曲的id来获取它的链接,也是这种情况。不过虾米的接口在搜索获取的歌的列表的时候,每一个对象有一个file属性保存着音乐的链接。可以保存下来使用。但qq则没有。
Top charts in iTunes, billboard and top new songs and releases
Run the sample code from "Basic Usage", hit the following error:
{ success: false,
message:
TypeError: Cannot read property 'map' of undefined
at NeteaseRequest.then.res (E:\Personal\PersonalWork\RaspberryPiMusicPlayer\node_modules\music-api\src\netease.js:48:40)
at process._tickCallback (internal/process/next_tick.js:103:7) }
for example, playlist http://music.163.com/#/playlist?id=592265608.
the tags are 民谣, 摇滚 and 华语.
你好, 我将您的qq源单独拿出来使用,没有经过总的MusicAPI进行查询
QQMusic.searchSong(query)
.then(data => data.songList.map(x => ({
icon: x.album.coverBig,
title: x.name,
subtitle: x.artists[0].name,
track: {
title: x.name,
artist: x.artists[0].name,
album: x.album.name,
albumArt: x.album.coverBig,
audio: QQMusic.getSong(x.id).then(song => song.url) // 这里
}
})
audio 如下
Promise {[[PromiseStatus]]: "resolved",
[[PromiseValue]]: "http://dl.stream.qqmusic.qq.com/M8000046HRBd0FvKLm…C380C8F140044403EDC0124&guid=489780640&fromtag=30"
}
大致代码如上, 但是最后 track.audio的值为一个promise
我该如何取出其中的值? 或者说 如何修改qq.js文件??
因为有同样的歌曲,时长不一样,歌词也有差别,最大的区别是歌词的时间定位。
网易云音乐部分歌曲解析音质有问题 比如:http://music.163.com/#/song?id=484058963
用云音乐会员下载是320K的 但是只能解析到128K音质的下载链接
要拿到mp3的URL一定要两次请求吗?能否合并成一次?
把百度音乐的也加上吧
{"success":false,"message":"No playlist id provided !"}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.