A script to modify the Web-feature in MediaMonkey; Need help

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

drjboulder
Posts: 1119
Joined: Mon Apr 09, 2007 12:03 am
Location: Boulder, Colorado, USA

Post by drjboulder »

I am really liking this.
Seems like it could actually replace WebSearchPanels.

I have been trying to replicate the searches for which I use WebSearchPanels.
My success so far has not been very good.

I have read past posts regarding web nodes and perused the scripting wiki.
Only to decide that I am more than dense when it comes to VBS.

So, if anyone would care to help me out here is the XML for WSP that I have not been able to replicate:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<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>GoogleMusic</name>
    <caption>Google Music</caption>
    <description>Search current Artist in Google Music</description>
    <start>http://www.google.com/musicsearch?q=</start>
    <url>http://www.google.com/musicsearch?q=%artist%&res=artist</url>
  </site>

  <site>
    <name>GoogleImages</name>
    <caption>Google Images</caption>
    <description>Search Google for Images</description>
    <start>http://images.google.com</start>
    <url>http://images.google.com/images?q="%albumartist%"+"%album%"</url>
  </site>
    
  <site>
      <name>musicbrainz</name>
      <caption>MusicBrainz</caption>
      <description>Search MusicBrainz</description>
      <start>http://musicbrainz.org/</start>
      <url>http://musicbrainz.org/search/textsearch.html?type=track&query="%artist%"+"%title%"</url>
  </site>
  

  <site>
      <name>allmusic_alb</name>
      <caption>allmusic.com:Album</caption>
      <description>allmusic</description>
      <start>http://www.allmusic.com/</start>
      <url>http://www.allmusic.com/cg/amg.dll?p=amg&sql=2:%album%</url>
   </site>
   
   <site>
       <name>Youtube_Music</name>
       <caption>Youtube Music</caption>
       <description>Search current Artist in Youtube Music</description>
       <start>http://www.youtube.com</start>
       <url>http://www.youtube.com/results?search_query=%artist%+%title%&search_category=10</url>
     </site>
     
     <site>
         <name>slothradio_cd_coversearch</name>
         <caption>slothradio_cd_coversearch</caption>
         <description>Search sloth radio for covers</description>
         <start>http://www.slothradio.com/covers/</start>
         <url>http://www.slothradio.com/covers/?&artist="%artist%"&album="%album%"</url>
  </site>
  
  <site>
      <name>AllCdCovers</name>
      <caption>All Cd CoverArt</caption>
      <description>Cover Search</description>
      <start>http://www.allcdcovers.com</start>
      <url> http://www.allcdcovers.com/search/%artist%+%album%</url>
  </site>
  
  <site>
        <name>LyricWiki</name>
        <caption>LyricWiki</caption>
        <description>LyricsWiki Search</description>
        <start>http://lyricwiki.org</start>
        <url>http://lyricwiki.org/api.php?artist=%artist%&song=%title%&fmt=html</url>
  </site>
    
  <site>
    <name>lyricssongs</name>
    <caption>lyrics-songs.com</caption>
    <description>Search current title's lyrics in lyrics-songs.com</description>
    <start>http://www.lyrics-songs.com/</start>
    <url>http://www.lyrics-songs.com/winamp.php?musica=%title%&artista=%artist%</url>
  </site>   

  <site>
    <name>lyricsplugin</name>
    <caption>lyricsplugin.com</caption>
    <description>Search current title's lyrics in lyricsplugin.com</description>
    <start>http://www.lyricsplugin.com/</start>
    <url>http://www.lyricsplugin.com/plugin/?title=%title%&artist=%artist%</url>
  </site>   
  
</configuration>

Top priority would be the "Sloth Radio" one and the lyrics sites.

Also, I was wondering if this can all be in one script. The ones I got to work are little "scriplets". Would rather not have a dozen or so of these.

I know that I am asking a lot, any partial help will be greatly appreciated!
Even a schooling of acceptable parameters that can follow

Code: Select all

+ SDB.player
would be helpful.
Complete help would earn complete admiration and respect!
D Rock
Image
MediaMonkeyGoldv3.0.3.1183
Vista Home Basic|4thGen 20GPod
Zune Small Player Skin w/ Aqua 4 Player Mod
Backup | Last FM Node | Scrobbler DJ | TopTracks | StayInSameStyleDJ
RadioDJ | RadioFreeMonkey | PrettyPictures | MiniLyricsEmbedder
LyricsViewer | Lyricator | LyricsPlugin | VisualizationEmbedder | MonkeyRok
RightClickForWeb | WebSearchPanels | WebNodes | MagicNodes | FavoritesNodes
NowPlayingArtNode |AutoRateAccurate | TaggingInconsistencies
AdvancedDuplicateFind&Fix | CaseModify | PlayHistory&Stats | Etc...
RedX
Posts: 366
Joined: Wed Dec 27, 2006 10:32 am
Location: Germany

Post by RedX »

drjboulder wrote:I am really liking this.
Seems like it could actually replace WebSearchPanels.

I have been trying to replicate the searches for which I use WebSearchPanels.
My success so far has not been very good.
I think it would be easier to create a mod of websearchepanel to create the nodes then to adapt each and every xml. But i have never used websearchpanel so no guarantee that it's possiple!

Write the creator in the WSP thread to know what he thinks of it.

Regards,
Red
Guest

Post by Guest »

If mod of WebSearchPanel, conversion or new script, I'd love it! because I don't like WebSearchPanel displaying content in a new pane/window! Mike
justin_f
Posts: 92
Joined: Thu Nov 22, 2007 11:41 am
Location: Valpo, IN

Post by justin_f »

How would I go about adding a subnode to one of these nodes? For example, I created two for youtube; one searches by the Artist, the other searches by the Title. How would I put this under a single parent node?
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

Well you just need to create your parent node under "Web", and then add your other nodes to this instead of to the "Web" node. Something like this...

Code: Select all

Sub OnStartup
  Dim Tree : Set Tree = SDB.MainTree
  Dim Node : Set Node = Tree.CreateNode
  Node.Caption = "YouTube"
  Node.IconIndex = 55
  Script.RegisterEvent Node, "OnNodeFocused", "NodeFocus"
  Tree.AddNode Tree.Node_Web, Node, 1
  Node.HasChildren = True

  Dim Sub1 : Set Sub1 = Tree.CreateNode
  Sub1.Caption = "Artist"
  Sub1.IconIndex = 55
  Script.RegisterEvent Sub1, "OnNodeFocused", "Sub1Focus"
  Tree.AddNode Node, Sub1, 1
  Sub1.HasChildren = False

  Dim Sub2 : Set Sub2 = Tree.CreateNode
  Sub2.Caption = "Title"
  Sub2.IconIndex = 55
  Script.RegisterEvent Sub2, "OnNodeFocused", "Sub2Focus"
  Tree.AddNode Node, Sub2, 1
  Sub2.HasChildren = False
End Sub
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
fridge
Posts: 75
Joined: Sat Jan 19, 2008 1:21 pm
Location: Vienna, Austria
Contact:

Post by fridge »

Just letting you know I've tried to script what you suggested ;) ... it can be found here
Post Reply