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

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

I finally got my MM as I like it. Thanks!!

Postby charlyg » Sat Aug 01, 2009 6:27 pm

Hey finally with the lyrics webpanel, monkeyrok, magic nodes, now playing and of course monkeyflow, it's my MP3 dream!!
Image
charlyg
 

Re: LyricsPlugin: how to upgrade to 0.3

Postby 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/plugin/?title=%title%&amp;artist=%artist%</url>

And you get some different features. Hope it's useful for someone!
greenflash
 
Posts: 1
Joined: Sat Aug 01, 2009 9:36 pm
Location: Argentina

Re: LyricsPlugin: how to upgrade to 0.3

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

greenflash wrote:I fixed it by modifying WebSearch.xml:

Where is this file found?

greenflash wrote:<url>http://www.lyricsplugin.com/winamp03/plugin/?title=%title%&amp;artist=%artist%</url>

What do I do with this string?


Thank you.

MediaMonkey version 3.2.0.1294 Gold
Windows 7 Professional


Image
shawn
 
Posts: 33
Joined: Sat Apr 11, 2009 5:18 pm

Re: LyricsPlugin: how to upgrade to 0.3

Postby 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?

greenflash wrote:<url>http://www.lyricsplugin.com/winamp03/plugin/?title=%title%&amp;artist=%artist%</url>

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%&amp;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
m_bojangles
 
Posts: 94
Joined: Fri Jun 11, 2004 8:22 pm

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

Postby 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
TigerSoul
 
Posts: 14
Joined: Wed Dec 16, 2009 8:09 am

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

Postby 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
limex
 
Posts: 62
Joined: Sat Oct 22, 2005 10:29 am
Location: Vienna / Austria

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

Postby 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?
elbuzzard
 
Posts: 21
Joined: Tue Feb 19, 2008 1:25 pm

Bing Album Art Search - Album & Singles

Postby 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&amp;q="%artist%"+"%title%"+cover&amp;qft=+filterui:aspect-square&amp;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&amp;q="%artist%"+"%album%"+cover&amp;qft=+filterui:aspect-square&amp;FORM=R5IR6</url>
  </site>
limex
 
Posts: 62
Joined: Sat Oct 22, 2005 10:29 am
Location: Vienna / Austria

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

Postby 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
linn
 
Posts: 128
Joined: Wed Sep 06, 2006 3:59 am

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

Postby 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.
wxdude
 
Posts: 49
Joined: Fri Mar 12, 2010 4:02 pm
Location: Canada

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

Postby 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.
linn
 
Posts: 128
Joined: Wed Sep 06, 2006 3:59 am

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

Postby 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)"
wxdude
 
Posts: 49
Joined: Fri Mar 12, 2010 4:02 pm
Location: Canada

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

Postby 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."
linn
 
Posts: 128
Joined: Wed Sep 06, 2006 3:59 am

Previous

Return to Need Help with Addons?

Who is online

Users browsing this forum: No registered users and 14 guests