squentin / gmusicbrowser

jukebox for large collections of music
http://gmusicbrowser.org
GNU General Public License v3.0
194 stars 42 forks source link

Artistinfo plugin sends malformed URL to browser only for last.fm #240

Open MountainX opened 2 years ago

MountainX commented 2 years ago

I'm running 1.1.99.1 git from AUR (en) - archlinux

In Artistinfo plug, Similar tab, when I right click artists that are not local, all websites open as expected in my browser except last.fm. For last.fm only, the URL sent to the browser is:

http://http://www.last.fm/music/%a

I changed line 370 in the plugin as follows

370c370
<                       if ($key eq "lastfm" && $lastfm_url) { $url='http://'.$lastfm_url; }
---
>                       if ($key eq "lastfm" && $lastfm_url) { $url=$lastfm_url; }

That solved the issue for me.