Fix track matching, upgrade GPM heuristics
This commit is contained in:
parent
03c50b550a
commit
d6352b6250
9 changed files with 68 additions and 29 deletions
|
@ -21,7 +21,7 @@ describe('Deezer', function(){
|
|||
});
|
||||
|
||||
it('should find track by search', function* (){
|
||||
const result = yield deezer.search({type: 'track', artist: {name: 'Deftones'}, album: {name: 'Deftones'}, name: 'Hexagram'});
|
||||
const result = yield deezer.search({type: 'track', artist: {name: 'Deftones'}, albumName: 'Deftones', name: 'Hexagram'});
|
||||
result.name.should.equal('Hexagram');
|
||||
});
|
||||
});
|
||||
|
|
|
@ -19,6 +19,16 @@ describe('Google Play Music', function(){
|
|||
const result = yield google.search({type: 'album', artist: {name: 'Jamie xx'}, name: 'In Colour'});
|
||||
result.name.should.equal('In Colour');
|
||||
});
|
||||
|
||||
it('should find track by search', function* (){
|
||||
const result = yield google.search({type: 'track', artist: {name: 'Jamie xx'}, albumName: 'In Colour', name: 'Loud Places'});
|
||||
result.name.should.equal('Loud Places');
|
||||
});
|
||||
|
||||
it('should find awkward track by search', function* (){
|
||||
const result = yield google.search({type: 'track', artist: {name: 'Jamie xx'}, albumName: 'In Colour (Remixes)', name: 'Loud Places [Tessela Remix]'});
|
||||
result.name.should.equal('Loud Places [Tessela Remix]');
|
||||
});
|
||||
});
|
||||
|
||||
describe('lookupUrl', function(){
|
||||
|
|
|
@ -21,7 +21,7 @@ describe('iTunes Music', function(){
|
|||
});
|
||||
|
||||
it('should find track by search', function* (){
|
||||
const result = yield itunes.search({type: 'track', artist: {name: 'Deftones'}, album: {name: 'Deftones'}, name: 'Hexagram'});
|
||||
const result = yield itunes.search({type: 'track', artist: {name: 'Deftones'}, albumName: 'Deftones', name: 'Hexagram'});
|
||||
result.name.should.equal('Hexagram');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue