The Evil &
Environment
- Lollypop version: 1.4.5 custom build
- GTK+ version: 3.24.23
- Operating system: Solus
Bug
So I spent my weekend night to figure out why lollypop search can't find my favourite song from Last.fm. After understanding some code and lots of debugging, I found that the song is made by two artists and artist name for the album contains & joining both names(i.e first artists & sec artists). And this was the root of the problem.
I replaced this line from
uri += "&api_key=%s&artist=%s&album=%s&format=json" % (
LASTFM_API_KEY, artist, album)
to
uri += "&api_key=%s&artist=%s&album=%s&format=json" % (
LASTFM_API_KEY, urllib.parse.quote_plus(artist), urllib.parse.quote_plus(album))
and boom my song was there.
Thanks for creating a great music player for Gnome. :)