Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during getLyrics() #10

Closed
SimonIT opened this issue Sep 24, 2020 · 2 comments
Closed

Error during getLyrics() #10

SimonIT opened this issue Sep 24, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@SimonIT
Copy link

SimonIT commented Sep 24, 2020

Describe the bug
Exception thrown during loading the lyrics.

Traceback (most recent call last):
  File "<input>", line 4, in <module>
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\azapi\azapi.py", line 90, in getLyrics
    self.lyrics = lyrics.strip()
AttributeError: 'NoneType' object has no attribute 'strip'

To Reproduce
Steps to reproduce the behavior:

api = azapi.AZlyrics('duckduckgo', accuracy=0.5)

api.artist = "Glass Animals"

api.getLyrics(url="http://www.azlyrics.com/lyrics/glassanimals/homemovie1994.html")

Expected behavior
It seem that no lyrics is available but the page exist. Maybe return None?

@elmoiv
Copy link
Owner

elmoiv commented Sep 26, 2020

I updated azapi with new fixes. One-liner lyrics can now be fetched.
Now pip install azapi==3.0.5.

If your problem is solved, kindly close this issue :)

P.S: you can now get lyrics with direct url with no need to add title or artist

@elmoiv elmoiv added the bug Something isn't working label Sep 26, 2020
@SimonIT
Copy link
Author

SimonIT commented Sep 27, 2020

Fixed, thank you!

@SimonIT SimonIT closed this as completed Sep 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants