WebSearch Panels (updated March 14, 2007) now with installer

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: WebSearch Panels (updated March 14, 2007) now with installer

Re: WebSearch Panels (updated March 14, 2007) now with insta

by linn » Sun Nov 10, 2013 3:17 pm

limex wrote:Works great for me on my Win7 x64 in the latest IE 10.0.9.
What is your environment?
hi, also Win7 x64 and IE 10.0.9 and MM 4.0.6 gold
just disabled AV and firewall.

Re: WebSearch Panels (updated March 14, 2007) now with insta

by limex » Sun Nov 10, 2013 2:11 pm

Works great for me on my Win7 x64 in the latest IE 10.0.9.
What is your environment?

Re: WebSearch Panels (updated March 14, 2007) now with insta

by linn » Sun Nov 10, 2013 6:30 am

It seems this is an obsolete addon, but until recently it worked for me.
But now ,when i try to get selected text into the "comment" i get this :
I guess it might be a IE ( ver. 10 ) setting?

Any help is welcome,

Image

Re: WebSearch Panels (updated March 14, 2007) now with insta

by linn » Sun Feb 24, 2013 2:57 pm

wxdude wrote:I forgot to look further into the script...and of course didn't test....

Try changing every instance of "SDB.Player.CurrentSong" to "SDB.SelectedSongList.Item(0)"
This did the trick ! thanks.

EDIT:
It works if i select a track in file list, but if i select a artist in "column browser" i get: "error executing script event. Object required."

Re: WebSearch Panels (updated March 14, 2007) now with insta

by wxdude » Sun Feb 24, 2013 2:07 pm

I forgot to look further into the script...and of course didn't test....

Try changing every instance of "SDB.Player.CurrentSong" to "SDB.SelectedSongList.Item(0)"

Re: WebSearch Panels (updated March 14, 2007) now with insta

by linn » Sun Feb 24, 2013 1:58 pm

wxdude wrote:On line 97 change

Code: Select all

    Script.RegisterEvent SDB, "OnPlay", "PanelInfom"
to

Code: Select all

    Script.RegisterEvent SDB, "OnTrackListSelectionChanged", "PanelInfom"
This should fire when the main tracklist selection is changed.
Thanks but this doesn't work , part of the page reloads ( amazon) , but no new search.

Re: WebSearch Panels (updated March 14, 2007) now with insta

by wxdude » Sun Feb 24, 2013 12:49 pm

On line 97 change

Code: Select all

    Script.RegisterEvent SDB, "OnPlay", "PanelInfom"
to

Code: Select all

    Script.RegisterEvent SDB, "OnTrackListSelectionChanged", "PanelInfom"
This should fire when the main tracklist selection is changed.

Re: WebSearch Panels (updated March 14, 2007) now with insta

by linn » Sun Feb 24, 2013 3:32 am

I guess it is not developed anymore, but it works fine for me.
Anyone knows what code i have to change so the search is performed wen a track is selected , instead of played; as it is now?
thanks

Bing Album Art Search - Album & Singles

by limex » Tue Aug 09, 2011 4:08 pm

I dunno why but my google images search for album art stopped working.
I added these panels for a search with bing.
Enjoy.

Code: Select all

  <site> 
    <name>BingImagesSingleCovers</name> 
    <caption>Bing Single Covers</caption> 
    <description>Search Bing for Singles Images</description> 
    <start>http://www.bing.com/images</start> 
    <url>http://www.bing.com/images/search?filt=all&q="%artist%"+"%title%"+cover&qft=+filterui:aspect-square&FORM=R5IR6</url> 
  </site> 

  <site> 
    <name>BingImagesAlbumCovers</name> 
    <caption>Bing Album Covers</caption> 
    <description>Search Bing for Album Images</description> 
    <start>http://www.bing.com/images</start> 
    <url>http://www.bing.com/images/search?filt=all&q="%artist%"+"%album%"+cover&qft=+filterui:aspect-square&FORM=R5IR6</url> 
  </site> 

Re: WebSearch Panels (updated March 14, 2007) now with insta

by elbuzzard » Tue Apr 05, 2011 8:06 pm

lyrics-plugin doesn't search anymore and now gives me:
Upgrade to Lyrics Plugin version 0.4
Anyone have any ideas?

Bugfix: Change '&' to '%26', Delete Content in Brackets

by limex » Mon Jan 11, 2010 5:31 pm

I modded the script because ...
- '&' in the Search String (appearing very often in the Artist Tag) is destroying the search string. Webpages expect %26 instead to work
- I have many songs with brackets in the title. i.e. Madonna - Holiday (Megamix). But you don't want to be looking for exactly the Megamix. Madonna - Holiday would be sufficient in many cases. So I stripped the bracketed content.

Here you go:
Find the function ReplaceTokens inside Websearch.vbs and replace with the code below. Feel free to comment out the delete bracket feature.

Code: Select all

    Function ReplaceTokens(ByVal URL, ByVal Song)
    	'limex: replace & with the code and delete everything inside brackets
    	Dim clean
    	Dim openbracket,closebracket, cleanleft, cleanright
        With Song
        		clean = Replace(.ArtistName,"&","%26")
            URL = Replace(URL, "%artist%", clean)
            clean = Replace(.Title,"&","%26")
						'delete brackets content start
						'comment this section if feature is unwanted
            openbracket = InStr (clean, "(")
            closebracket = InStr (clean, ")")
            If openbracket > 0 And closebracket > 1 And openbracket < closebracket Then
            	cleanleft = Trim(Left(clean, openbracket -1))
            	cleanright = Trim(Mid (clean, closebracket +1))
            	clean = Trim (cleanleft & " " & cleanright)
          	End If  
          	'delete brackets content end
            URL = Replace(URL, "%title%", clean)
            
            clean = Replace(.AlbumName,"&","%26")
            URL = Replace(URL, "%album%", clean)
            
            clean = Replace(.AlbumArtistName,"&","%26")
            URL = Replace(URL, "%albumartist%", clean)
        End With
        ReplaceTokens = URL
    End Function

Re: WebSearch Panels (updated March 14, 2007) now with installer

by TigerSoul » Thu Dec 17, 2009 5:13 am

I see what I think is a huge lack here but it seems nobody has thought about it but I, which is strange, I must be after something strange.

The idea here is that I want a feature in this plugin or by other means to scroll down the webpage within the panel to a certain position X and Y wise to get rid of undesired parts of the webpages. I can't find any information about this, hasn't it been done yet?

Kristian

Re: LyricsPlugin: how to upgrade to 0.3

by m_bojangles » Thu Sep 10, 2009 8:47 am

shawn wrote:
greenflash wrote:I fixed it by modifying WebSearch.xml:
Where is this file found?
What do I do with this string?
WebSearch.xml is found in the Scripts\Auto folder of your MM installation directory (usually Program Files\MediaMonkey).
This file contains all of the entries for the various web sites you want to access with this script.
Each entry looks like this example:

Code: Select all

      <site>
        <name>lyricsplugin</name>
        <caption>lyricsplugin</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>
As you can see, the <url></url> part is what is being suggested that you replace. Save the WebSearch.xml after modifying and then restart MediaMonkey.

-m_b

Re: LyricsPlugin: how to upgrade to 0.3

by shawn » Thu Sep 10, 2009 5:13 am

greenflash wrote:I fixed it by modifying WebSearch.xml:
Where is this file found?
What do I do with this string?


Thank you.

Re: LyricsPlugin: how to upgrade to 0.3

by greenflash » Sat Aug 01, 2009 9:41 pm

When you try to edit the lyric in the current panel setup it prompts to upgrade to 0.3...
I fixed it by modifying WebSearch.xml:

<url>http://www.lyricsplugin.com/winamp03/pl ... tist%</url>

And you get some different features. Hope it's useful for someone!

Top