Skip to content

Commit

Permalink
Add logging to see if Genius is being used
Browse files Browse the repository at this point in the history
  • Loading branch information
brentvollebregt committed Jan 18, 2024
1 parent a3cf92c commit 8b2fcb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/routes/lrclib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ router.get("/lyrics", async (req, res) => {

const lyricsAndDetails = await getLyrics(artists, title, albumName, duration);
if (!lyricsAndDetails.lyrics || lyricsAndDetails.lyrics === "") {
console.log(
`Unable to find lyrics from lrclib, searching Genius ([${title}] by [${artists}] on [${albumName}] with duration of [${duration}])`
);
const bestSearchResults = await searchForMostProbableLyricsHit(artists, title);

// Verify a match was found
Expand Down

0 comments on commit 8b2fcb4

Please sign in to comment.