vookav2 / songlyrics

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

AZLyrics returns empty string #15

Closed Eithoo closed 2 years ago

Eithoo commented 2 years ago

Similar to #14 - it returns correct link to the lyrics (and it works), but the lyrics string is empty. I guess there is some problem in parsing lyrics from AZLyrics because Genius works normally.

Data returned by songlyrics: image

AZLyrics website: https://www.azlyrics.com/lyrics/eminem/river.html image

Eithoo commented 2 years ago

Now the source was Genius and it worked as expected. image It would be nice to have option to search lyrics in next website if previous one didn't return full data.

Eithoo commented 2 years ago

It turned out that AZLyrics was adding <span> and <br> to songs that have "feat." in them which was causing error because songlyrics use .nextElementSibling. I fixed it in my fork, because it seems that @mr687 is not around right now

edit: the author is back so I created a pull request with the fix