Update plugins/lyrics.js
Browse files- plugins/lyrics.js +1 -2
plugins/lyrics.js
CHANGED
|
@@ -3,8 +3,7 @@ const cheerio = require("cheerio")
|
|
| 3 |
|
| 4 |
async function getLyrics(query) {
|
| 5 |
try {
|
| 6 |
-
const
|
| 7 |
-
const searchUrl = `https://www.azlyrics.com/search/?q=${normalizedQuery}&x=6c789b703562209942b3c6f9a5b5a50bbcc3196a2727629f11784e520faeec36`
|
| 8 |
|
| 9 |
await new Promise(resolve => setTimeout(resolve, 500))
|
| 10 |
|
|
|
|
| 3 |
|
| 4 |
async function getLyrics(query) {
|
| 5 |
try {
|
| 6 |
+
const searchUrl = `https://www.azlyrics.com/search/?q=${encodeURIComponent(query)}&x=6c789b703562209942b3c6f9a5b5a50bbcc3196a2727629f11784e520faeec36`
|
|
|
|
| 7 |
|
| 8 |
await new Promise(resolve => setTimeout(resolve, 500))
|
| 9 |
|