I forgot to skewer the artist name
This commit is contained in:
parent
84b41c1530
commit
dafa8087ec
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -91,7 +91,7 @@ async function getVideo() {
|
||||||
|
|
||||||
const youtubeMusicVideo = musicList.find((song) => {
|
const youtubeMusicVideo = musicList.find((song) => {
|
||||||
return skewered(song.title).includes(skewered(trackData.name))
|
return skewered(song.title).includes(skewered(trackData.name))
|
||||||
&& song.artists.some(artist => skewered(trackData.artist.name).includes(artist.name));
|
&& song.artists.some(artist => skewered(trackData.artist.name).includes(skewered(artist.name)));
|
||||||
});
|
});
|
||||||
|
|
||||||
if (youtubeMusicVideo == null) {
|
if (youtubeMusicVideo == null) {
|
||||||
|
|
Loading…
Reference in a new issue