Fix Google Play Music and Spotify

This commit is contained in:
Jonathan Cremin 2017-07-20 14:31:07 +01:00
parent 688ec0f2f9
commit 6c29d50f1e
21 changed files with 566 additions and 559 deletions

View file

@ -21,8 +21,8 @@ describe('Deezer', function(){
});
it('should find album with various artists by search', function* (){
const result = yield deezer.search({type: 'album', artist: {name: 'Various Artists'}, name: 'The Trevor Nelson Collection'});
result.name.should.equal('The Trevor Nelson Collection');
const result = yield deezer.search({type: 'album', artist: {name: 'Various Artists'}, name: 'The Trevor Nelson Collection 2'});
result.name.should.equal('The Trevor Nelson Collection 2');
});
it('should find track by search', function* (){

View file

@ -29,7 +29,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');
const result = yield xbox.parseUrl('https://music.microsoft.com/album/kyuss/muchas-gracias-the-best-of-kyuss/bz.8b558d00-0100-11db-89ca-0019b92a3933');
result.id.should.equal('music.8D6KGX5BZ8WB');
});
});

View file

@ -2,6 +2,13 @@ import 'should';
import * as youtube from '../../lib/services/youtube';
describe('Youtube', function(){
describe('lookup', function(){
it('should find album by lookup', function* (){
const result = yield youtube.lookupId('6JnGBs88sL0');
result.name.should.equal('Nelly Furtado - Say It Right');
});
});
describe('search', function(){
it('should find album by search', function* (){
const result = yield youtube.search({type: 'track', artist: {name: 'Aesop Rock'}, album: {name: 'Skeconsthon'}, name: 'Zero Dark Thirty'});