Looks like David Guetta ain't streaming Listen (Deluxe) no more.

This commit is contained in:
Jonathan Cremin 2015-08-20 00:32:28 +01:00
parent cb711ea510
commit c6d48cc424
2 changed files with 6 additions and 7 deletions

View file

@ -5,8 +5,7 @@
"scripts": {
"build": "babel -d public/views views",
"cover": "istanbul cover _mocha -- --require babel/register --require co-mocha test/**/*.js",
"jspm": "./node_modules/.bin/jspm config registries.github.auth $JSPM_GITHUB_AUTH_TOKEN && jspm install",
"start": "node -r babel/register app.js",
"start": "babel-node app.js",
"postinstall": "npm run build",
"test": "mocha --require co-mocha --compilers js:babel/register test/**/*.js --timeout=10000",
"watch": "parallelshell \"npm run watch-js\" \"npm run watch-server\"",

View file

@ -16,20 +16,20 @@ describe('Google Play Music', function(){
describe('search', function(){
it('should find album by search', function* (){
let result = yield google.search({type: 'album', artist: {name: 'David Guetta'}, name: 'Listen (Deluxe)'});
result.name.should.equal('Listen (Deluxe)');
let result = yield google.search({type: 'album', artist: {name: 'Jamie xx'}, name: 'In Colour'});
result.name.should.equal('In Colour');
});
});
describe('lookupUrl', function(){
it('should parse regular url into album ID', function* (){
let result = yield google.parseUrl('https://play.google.com/music/listen#/album/Byp6lvzimyf74wxi5634ul4tgam/David+Guetta/Listen+(Deluxe)');
let result = yield google.parseUrl('https://play.google.com/music/listen#/album/Byp6lvzimyf74wxi5634ul4tgam/Jamie+xx/In+Colour');
result.id.should.equal('Byp6lvzimyf74wxi5634ul4tgam');
});
it('should parse url without ID into album ID', function* (){
let result = yield google.parseUrl('https://play.google.com/music/listen#/album//David+Guetta/Listen+(Deluxe)');
result.id.should.equal('Byp6lvzimyf74wxi5634ul4tgam');
let result = yield google.parseUrl('https://play.google.com/music/listen#/album//Jamie+xx/In+Colour');
result.id.should.equal('Bvfmezcj3n42lo4xeuslpclbyrm');
});
it('should parse share url into album ID', function* (){