Fix Groove music and bump playmusic

This commit is contained in:
Jonathan Cremin 2017-05-06 20:30:55 +01:00
parent 562fd0d8a2
commit 4bb21f407a
4 changed files with 383 additions and 553 deletions

View file

@ -21,8 +21,8 @@ const credentials = {
const apiRoot = 'https://music.xboxlive.com/1/content';
function* getAccessToken() {
const authUrl = 'https://datamarket.accesscontrol.windows.net/v2/OAuth2-13';
const scope = 'http://music.xboxlive.com';
const authUrl = 'https://login.live.com/accesstoken.srf';
const scope = 'app.music.xboxlive.com';
const grantType = 'client_credentials';
const data = {

View file

@ -71,7 +71,7 @@
"moment": "^2.14.1",
"node-uuid": "~1.4.2",
"pg": "^6.1.0",
"playmusic": "~2.2.0",
"playmusic": "~2.2.1",
"sequelize": "^3.24.3",
"spotify": "~0.3.0",
"style-loader": "^0.13.1",

View file

@ -24,7 +24,7 @@ describe('Xbox Music', function(){
describe('lookupUrl', 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');
result.id.should.equal('music.8B558D00-0100-11DB-89CA-0019B92A3933');
result.id.should.equal('music.8D6KGX5BZ8WB');
});
});
});

928
yarn.lock

File diff suppressed because it is too large Load diff