genius-lyrics-api
Advanced tools
Comparing version 3.1.1 to 3.2.0
@@ -16,2 +16,3 @@ const searchSong = require('./searchSong'); | ||
id: results[0].id, | ||
title: results[0].title, | ||
url: results[0].url, | ||
@@ -18,0 +19,0 @@ lyrics, |
@@ -13,5 +13,5 @@ const axios = require('axios'); | ||
try { | ||
const headers = { | ||
Authorization: 'Bearer ' + apiKey | ||
}; | ||
// const headers = { | ||
// Authorization: 'Bearer ' + apiKey | ||
// }; | ||
let { | ||
@@ -21,6 +21,10 @@ data: { | ||
} | ||
} = await axios.get(url + id, { headers }); | ||
} = await axios.get( | ||
`${url}${id}&access_token=${apiKey}` | ||
// { headers } | ||
); | ||
let lyrics = await extractLyrics(song.url); | ||
return { | ||
id: song.id, | ||
title: song.full_title, | ||
url: song.url, | ||
@@ -27,0 +31,0 @@ lyrics, |
{ | ||
"name": "genius-lyrics-api", | ||
"version": "3.1.1", | ||
"version": "3.2.0", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -41,2 +41,3 @@ # genius-lyrics-api [![npm version](https://img.shields.io/npm/v/genius-lyrics-api.svg?style=flat)](https://www.npmjs.com/package/genius-lyrics-api) | ||
${song.id} | ||
${song.title} | ||
${song.url} | ||
@@ -72,2 +73,3 @@ ${song.albumArt} | ||
id: number; // Genius song id | ||
title: string; // Song title | ||
url: string; // Genius webpage URL for the song | ||
@@ -74,0 +76,0 @@ lyrics: string; // Song lyrics |
10033
172
121