The way you added artist info lookup is a great idea!
*copies to config*
thanks
Does it matter? As there is no component for foobar that does this, this is a good alternative way that interfaces with foobar quite nicely imo. Besides, if there was a component that does this, it's still a webpage that is being loaded so it would be just a web browser too.
i saw this this post and tried the script, but it wasn't working. it was probably made for the old look of lastfm page, so i changed it a bit and it is working now:
#NoTrayIcon
SetWorkingDir, %A_ScriptDir%
IfExist, %A_ScriptDir%/%1%.htm
{
Run, %A_ScriptDir%/../k-meleon/k-meleon.exe file://%A_ScriptDir%/%1%.htm
ExitApp
}
UrlDownloadToFile, http://www.last.fm/music/%1%/+wiki, %1%.tmp
output = %A_ScriptDir%/%1%.htm
FileRead, html, %A_ScriptDir%/%1%.tmp
a := RegExMatch(html, "<div id=""wiki"">","",17)
b := RegExMatch(html, "</div><!-- #wiki -->","",1)
length := b - a
;MsgBox, %length%
StringMid, bio, html, a, length
;StringReplace, bio, bio, <br />,, 1
;StringReplace, bio, bio, <em>,,1
;StringReplace, bio, bio, </em>,,1
StringReplace, bio, bio, <div id="wiki">
StringReplace, bio, bio, </div><!-- #wiki -->
;;; OVO GOVNO BRISE LINKOVE
;bio := RegExReplace(bio, "<.+?>")
StringMid, bio, bio, 22
bio := "<html><title>Artist Biography</title><body bgcolor=#FFFFFF><font face=Calibri><p>" bio "</p></font></body></html>"
MsgBox, %bio%
FileAppend, %bio%, %output%
FileDelete, %1%.tmp
Run, %A_ScriptDir%/../k-meleon/k-meleon.exe file://%output%
ExitApp
at first i tried to display the txt file in a lyrics panel like someone on this forum suggested, but noticed that the text won't be shown if it's too long as most biographies are quite longer than average lyrics.
the other problem is that the "getbio.exe Artist" command should be executed on every song/artist change, and i couldn't find the plugin that doees that.
the script above would start the k-meleon browser with the downloaded text file, but i later i decied to just start k-meleon directly and point it to wapedia/artist.
as i see it, it's better that the page opens in a separate program (i used the k-meleon browser becuase it is very configurable, you can remove every toolbar and it's mem usage is low) because if someone made a plugin to display web sites in foobar, i am sure that it's memory usage would go up very high...
p.s. i would hate to see an ie browser window inside foobar