Add extra logic to match albums and tracks to improve match
This commit is contained in:
parent
248e42f841
commit
216940a2b8
2 changed files with 15 additions and 2 deletions
|
@ -27,6 +27,12 @@ describe('ytmusic', function(){
|
|||
result.id.should.equal('MPREb_iZt1VjORlv7');
|
||||
});
|
||||
|
||||
it('should find album and make sure it makes sense by search', async function(){
|
||||
const result = await ytmusic.search({type: 'album', artist: {name: 'The Beatles'}, name: 'The Beatles'});
|
||||
result.name.should.equal('The Beatles');
|
||||
result.id.should.equal('MPREb_S5TiUIYvI78');
|
||||
});
|
||||
|
||||
it('should find track by search', async function (){
|
||||
const result = await ytmusic.search({type: 'track', artist: {name: 'Oasis'}, albumName: 'Stop The Clocks', name: 'Wonderwall'});
|
||||
result.name.should.equal('Wonderwall');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue