Page 2 of 2

Posted: Thu Jan 10, 2008 3:05 am
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!

Posted: Thu Jan 10, 2008 6:22 am
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

Posted: Thu Jan 10, 2008 12:25 pm
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

Posted: Sat Jan 26, 2008 1:11 am
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?

Posted: Sat Jan 26, 2008 5:07 am
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

Posted: Mon Feb 04, 2008 2:34 am
by fridge
Just letting you know I've tried to script what you suggested ;) ... it can be found here

Posted: Sun Mar 09, 2008 12:02 pm
by onenonymous
Also check out my Right Click For Web script:
http://www.mediamonkey.com/forum/viewtopic.php?t=26875