elmoiv / azapi

Get Lyrics from AZLyrics.com like a Boss ~(0_0)~
GNU General Public License v3.0
122 stars 12 forks source link

[Solved] getSongs() returns relative path #6

Closed SimonIT closed 2 years ago

SimonIT commented 4 years ago

Describe the bug getSongs() returns relative paths to the individual songs

To Reproduce

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

    api.artist = "Oliver Heldens"
    api.title = "Lift Me Up"

    songs = api.getSongs()

Expected behavior The url is https://www.azlyrics.com/lyrics/oliverheldens/liftmeup.html

Screenshots image

Desktop (please complete the following information):

elmoiv commented 4 years ago

Thanks. I will work on a fix

elmoiv commented 4 years ago

@SimonIT I patched a workaround for this bug. Now pip install azapi==3.0.1 Check it out and if your problem is solved, kindly close this issue :)

SimonIT commented 4 years ago

Yes, it's fixed. Thank you

SimonIT commented 2 years ago

Hey @elmoiv, the problem somehow returned. I'm using version 3.0.6 image

elmoiv commented 2 years ago

Can you please send the code producing this bug?

SimonIT commented 2 years ago

You can use the code from the first comment or this: https://github.com/SimonIT/spotifylyrics/blob/a7d8df22f6398e50d49ef2300714d409bbf42905/services.py#L319-L342

elmoiv commented 2 years ago

@SimonIT Bug Patched. Now pip install azapi==3.0.7 and check if it's resolved at your side.

SimonIT commented 2 years ago

It's working again, thanks! I wouldn't mind if the url would start with 'https', but that's only a minor detail