geniuslyricfinder
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -30,3 +30,3 @@ const fetch = require('node-fetch'); | ||
.then(r => r.json()) | ||
.catch(e => { throw new Error("😢 Genius API failed to search for that song") }); | ||
.catch(e => { throw new Error("😢 Genius API failed to search for that song\n" + e) }); | ||
@@ -63,2 +63,3 @@ if (multiSearch.response && multiSearch.response.sections && multiSearch.response.sections[0] && multiSearch.response.sections[0].hits && multiSearch.response.sections[0].hits[0] && multiSearch.response.sections[0].hits[0].result && multiSearch.response.sections[0].hits[0].result.url) { | ||
if (response.lyrics.length == 0) return getLyrics(query); | ||
response.artist = songMetadata["artist_names"] | ||
@@ -65,0 +66,0 @@ response.song = songMetadata["title"] |
{ | ||
"name": "geniuslyricfinder", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Uses genius.com to retrieve song lyrics", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# LyricFinder | ||
Scrapes from Genius to fetch useful song info including lyrics | ||
## Example | ||
```javascript | ||
const geniuslyricfinder = require("geniuslyricfinder") | ||
geniuslyricfinder.getLyrics("Primadonna") | ||
.then(r => console.log(r)) | ||
.catch(e => console.log(e)) | ||
``` |
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
4042
68
11