Fix artist name in track search
This commit is contained in:
parent
e5a9da78d6
commit
248e42f841
2 changed files with 2 additions and 1 deletions
|
@ -118,7 +118,7 @@ async function lookupTrack(id) {
|
||||||
|
|
||||||
let description = song_meta.shortDescription.split("\n\n")
|
let description = song_meta.shortDescription.split("\n\n")
|
||||||
let album_name = description[2]
|
let album_name = description[2]
|
||||||
let artists = description[1].split(' · ')
|
let artists = description[1].split(' · ').slice(1)
|
||||||
|
|
||||||
const artwork = {
|
const artwork = {
|
||||||
small: song_meta.thumbnail.thumbnails[0].url,
|
small: song_meta.thumbnail.thumbnails[0].url,
|
||||||
|
|
|
@ -11,6 +11,7 @@ describe('ytmusic', function(){
|
||||||
it('should find track by ID', async function (){
|
it('should find track by ID', async function (){
|
||||||
const result = await ytmusic.lookupId('9zrYXvUXiQk', 'track');
|
const result = await ytmusic.lookupId('9zrYXvUXiQk', 'track');
|
||||||
result.name.should.equal('One Vision (Remastered 2011)');
|
result.name.should.equal('One Vision (Remastered 2011)');
|
||||||
|
result.artist.name.should.equal('Queen');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
describe('search', () => {
|
describe('search', () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue