@alufi/lyrics-api
Advanced tools
Comparing version 0.0.10-dev to 1.0.0-dev
{ | ||
"name": "@alufi/lyrics-api", | ||
"version": "0.0.10-dev", | ||
"version": "1.0.0-dev", | ||
"description": "Official Lyrics API wrapper of Alufi Bot", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -49,3 +49,3 @@ const SearchLyrics = require('lyrics-finder'); | ||
if (!yt.data[0].name.toLowerCase().includes(artist.toLowerCase().split(',')[0])) { | ||
if (!yt.data[0].name.toLowerCase().includes(artist.toLowerCase())) { | ||
title = mathString(yt.data[0].name); | ||
@@ -72,6 +72,7 @@ artist = ''; | ||
lyrics = await SearchLyrics('', title); | ||
if (!lyrics) reject(new Error("Could not find the lyrics!")); | ||
thumbnails = mathThumb(yt.data[0].thumbnail); | ||
} | ||
if (!lyrics) return reject(new Error('Could not find the lyrics!')); | ||
if (options) { | ||
@@ -100,2 +101,5 @@ return result({ | ||
title = title.split('!')[0]; | ||
title = title.split(':')[0]; | ||
title = title.split('::')[0]; | ||
title = title.split('|')[0]; | ||
title = title.split('||')[0]; | ||
@@ -102,0 +106,0 @@ return title; |
17531
106
7