Improve spotify matching

This commit is contained in:
Jonathan Cremin 2017-05-07 20:36:20 +01:00
parent d6352b6250
commit c5ea8f5b7a
2 changed files with 7 additions and 1 deletions

View file

@ -19,6 +19,11 @@ describe('Spotify', function(){
const result = yield spotify.search({type: 'album', artist: {name: 'David Guetta'}, name: 'Listen (Deluxe)'});
result.name.should.equal('Listen (Deluxe)');
});
it('should find album with colon in name by search', function* (){
const result = yield spotify.search({type: 'album', artist: {name: 'Various Artists'}, name: 'The Get Down Part II: Original Soundtrack From The Netflix Original Series'});
result.name.should.equal('The Get Down Part II: Original Soundtrack From The Netflix Original Series');
});
});
describe('parseUrl', function(){