lyricsfetchergenius
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "lyricsfetchergenius", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A npm package to fetch lyrics from genius api", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,4 +0,4 @@ | ||
#Lyrics Fetcher Genius | ||
# Lyrics Fetcher Genius | ||
#How to Use | ||
# How to Use | ||
@@ -5,0 +5,0 @@ Using GetLyrics: |
@@ -25,10 +25,10 @@ const axios = require("axios"); | ||
}; | ||
const rawData = await axios.get( | ||
const { data } = await axios.get( | ||
AuthHeader ? RequestURL : `${RequestURL}&access_token=${APIKey}`, | ||
AuthHeader && { Headers } | ||
); | ||
if (rawData.data.response.hits.length === 0) return null; | ||
const results = rawData.data.response.hits.map((value) => { | ||
const { Full_Title, Song_Art_Image_URL, ID, URL } = value; | ||
return { ID, Title: Full_Title, Album_Art: Song_Art_Image_URL, URL }; | ||
if (data.response.hits.length === 0) return null; | ||
const results = data.response.hits.map((value) => { | ||
const { full_title, song_art_image_url, id, url } = value.result; | ||
return { id, Title: full_title, Album_Art: song_art_image_url, url }; | ||
}); | ||
@@ -35,0 +35,0 @@ return results; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17802