vookav2 / songlyrics

Find song lyrics just enter the song title
MIT License
6 stars 2 forks source link

AZLyrics returns unaccurate results,. #19

Closed TehPigYT closed 1 year ago

TehPigYT commented 2 years ago

Hey there,

I have tried searching for some song lyrics but for some reason it returns wrong results. The source that is selected all the time is AZLyrics. Here is a screenshot

Using the package on a completely empty Visual Studio Code node.js project with the same request returns the information properly, but the source is from Genius instead.

I am using the latest version of the package, v2.4.4. Is there any way to solve this?

Eithoo commented 2 years ago

Works fine for me: image Normalize your query.

TehPigYT commented 2 years ago

Query is the exact same as the one provided in your screenshot. How does the package select the source of the lyrics?

TehPigYT commented 2 years ago

Query: neffex unstoppable Output

{
  title: 'NEFFEX - Unstoppable Lyrics',
  lyrics: 'undefined',
  source: {
    name: 'AZLyrics',
    url: 'www.azlyrics.com',
    link: 'https://www.azlyrics.com/lyrics/neffex/unstoppable.html'
  }
}

And here is another query: neffex first time Output

Error: Failed to get the response: 403
Eithoo commented 2 years ago

Query is the exact same as the one provided in your screenshot. How does the package select the source of the lyrics?

@TehPigYT It's searching in DuckDuckGo for lyrics and returns the first result from sources (AZLyrics, Genius, Lyrics, Musixmatch)

Eithoo commented 2 years ago

Maybe AZLyrics is blocked in your country by ISP? You can try with a VPN to find out if that's the issue.

TehPigYT commented 2 years ago

But why is it searching for AZLyrics on the host that I use and uses Genius when I use the package locally? With the same exact query.

I have also tried using it on another host with a different server location and it is still showing 403 errors.

TehPigYT commented 2 years ago

Is there a chance that there might be a future where we can select the source of the lyrics, along with request parameters?

mr687 commented 1 year ago

Hey there,

I have tried searching for some song lyrics but for some reason it returns wrong results. The source that is selected all the time is AZLyrics. Here is a screenshot

Using the package on a completely empty Visual Studio Code node.js project with the same request returns the information properly, but the source is from Genius instead.

I am using the latest version of the package, v2.4.4. Is there any way to solve this?

Hi @TehPigYT, sorry for late response. you can upgrade the package version to v2.4.5. Thanks