Fix Groove music and bump playmusic
This commit is contained in:
parent
562fd0d8a2
commit
4bb21f407a
4 changed files with 383 additions and 553 deletions
|
@ -21,8 +21,8 @@ const credentials = {
|
||||||
const apiRoot = 'https://music.xboxlive.com/1/content';
|
const apiRoot = 'https://music.xboxlive.com/1/content';
|
||||||
|
|
||||||
function* getAccessToken() {
|
function* getAccessToken() {
|
||||||
const authUrl = 'https://datamarket.accesscontrol.windows.net/v2/OAuth2-13';
|
const authUrl = 'https://login.live.com/accesstoken.srf';
|
||||||
const scope = 'http://music.xboxlive.com';
|
const scope = 'app.music.xboxlive.com';
|
||||||
const grantType = 'client_credentials';
|
const grantType = 'client_credentials';
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
"moment": "^2.14.1",
|
"moment": "^2.14.1",
|
||||||
"node-uuid": "~1.4.2",
|
"node-uuid": "~1.4.2",
|
||||||
"pg": "^6.1.0",
|
"pg": "^6.1.0",
|
||||||
"playmusic": "~2.2.0",
|
"playmusic": "~2.2.1",
|
||||||
"sequelize": "^3.24.3",
|
"sequelize": "^3.24.3",
|
||||||
"spotify": "~0.3.0",
|
"spotify": "~0.3.0",
|
||||||
"style-loader": "^0.13.1",
|
"style-loader": "^0.13.1",
|
||||||
|
|
|
@ -24,7 +24,7 @@ describe('Xbox Music', function(){
|
||||||
describe('lookupUrl', function(){
|
describe('lookupUrl', function(){
|
||||||
it('should parse regular url into album ID', function* (){
|
it('should parse regular url into album ID', function* (){
|
||||||
const result = yield xbox.parseUrl('https://music.xbox.com/album/kyuss/muchas-gracias-the-best-of-kyuss/8b558d00-0100-11db-89ca-0019b92a3933');
|
const result = yield xbox.parseUrl('https://music.xbox.com/album/kyuss/muchas-gracias-the-best-of-kyuss/8b558d00-0100-11db-89ca-0019b92a3933');
|
||||||
result.id.should.equal('music.8B558D00-0100-11DB-89CA-0019B92A3933');
|
result.id.should.equal('music.8D6KGX5BZ8WB');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue