It adds as many panels as defined to the MM screen, each one performs a specific web search on Artist, Title of Album. The script needs a XML file as a configuration file (I chose XML, as it seems easier to parse by VBS
- There is now an MM3 installer available at Google code
- gege wrote a nice documentation how to use the script here.
- The current code can be found here.
Here is a sample config file, which needs to be named WebSearch.xml and must be located in the main MM directory.
- Code: Select all
<?xml version="1.0" encoding="ISO-8859-15"?>
<configuration>
<site>
<name>Google</name>
<caption>Google</caption>
<description>Search Google for Artist</description>
<start>http://www.google.com</start>
<url>http://www.google.com/search?q=%artist%</url>
</site>
<site>
<name>Wikipedia</name>
<caption>Wikipedia</caption>
<description>Search Wikipedia for Artist</description>
<start>http://www.wikipedia.org</start>
<url>http://www.wikipedia.org/wiki/%artist%</url>
</site>
</configuration>
The "url" parameter is the Web Search URL, and the placeholders %artist%, %title% ansd %album% are replaced accordingly.
Here is the script. Save if as WebSearch.vbs and copy it to MM's scripts/auto directory:
- Code: Select all
New version, see below
Experienced users will notice that there is no kind of error handling whatsoever. So make sure that the XML file is in place and has no errors.
Feedback -- as well on the code and more configurations for more sites -- are greatly appreciated.
Jörg





