[MM2+3] Search Google, Wikipedia, Last.fm, ...

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: [MM2+3] Search Google, Wikipedia, Last.fm, ...

Web Sources Tagger

by ripndip » Fri May 18, 2012 9:26 pm

Steegy wrote:Hey Unnicorn

Sorry for the late answer. The reason is that I just saw this message.

As it is now, Raaga can't be used with WebSourcesTagger (or Mp3Tag). That's because WST needs a site that uses Form GET (like http://www.raaga.com/channels/hindi/sea ... ic&match=A).
Raaga only allows Form POST (like http://www.raaga.com/channels/hindi/searchresults.asp with variables sent as parameters).
Except for this, Raaga seems to have the right form to use it with WST.

I'll add Form POST to the todo.

Cheers
Steegy

Hi guys, Is your Web Sources Framework still working?

by unnicorn » Fri Mar 09, 2007 12:25 am

Steegy wrote:Hey Unnicorn

Sorry for the late answer. The reason is that I just saw this message.

As it is now, Raaga can't be used with WebSourcesTagger (or Mp3Tag). That's because WST needs a site that uses Form GET (like http://www.raaga.com/channels/hindi/sea ... ic&match=A).
Raaga only allows Form POST (like http://www.raaga.com/channels/hindi/searchresults.asp with variables sent as parameters).
Except for this, Raaga seems to have the right form to use it with WST.

I'll add Form POST to the todo.

Cheers
Steegy
Ok, understood. Please let me know when its done. I am myself trying my hand on coding so may ping you if I need any help. Thanks!

by Steegy » Thu Feb 22, 2007 6:47 am

Hey Unnicorn

Sorry for the late answer. The reason is that I just saw this message.

As it is now, Raaga can't be used with WebSourcesTagger (or Mp3Tag). That's because WST needs a site that uses Form GET (like http://www.raaga.com/channels/hindi/sea ... ic&match=A).
Raaga only allows Form POST (like http://www.raaga.com/channels/hindi/searchresults.asp with variables sent as parameters).
Except for this, Raaga seems to have the right form to use it with WST.

I'll add Form POST to the todo.

Cheers
Steegy

Tags from other sites

by unnicorn » Sun Jan 28, 2007 12:29 pm

Steegy wrote:
how difficult would it be to get the album art and other info from them as well
For people who don't know yet:
A solution exists to tag your files from web resources, using "Web Sources Tagger": http://www.mediamonkey.com/forum/viewto ... 1069#41069
For more information (history, possibilities), please take a look in that thread.

It currently works for Amazon (all sites), All Music Guide (AMG), FreeDB, Discogs, Walmart (covers) and DarkTown (covers).
Other scripts already exist but have to be improved (e.g. iTunes (covers), ArtistDirect and MusicBrainz.)

If you want other sites to be supported, please let us know. Or take a look at the above linked forum page to find information on how to create/edit sources scripts yourself (documentation from Mp3Tag).

Cheers
Steegy
Hi Steegy,

Thanks for the above script. It works well for me.

Being an Indian there are many songs that dont exist on these sites. Theres a site called www.raaga.com which has a rich database of Indian songs. Will it be possible or easy to get info from that site. Also how do we know which sites support this functionality of searching and getting tags from them.

Thanks in advance.

I'm with you Sammy

by arcspin » Wed Dec 13, 2006 4:37 pm

I too get the dreaded "404 Page not found" messages when I use the LAST.FM option to search for an artist,

Are there anyone else that have this problem ???


X.mas is around the corner....

//Peter

AllMusic query syntax

by tj_junk » Wed Dec 13, 2006 3:55 pm

I don't know whether this has been posted elsewhere, but it is extremely easy to search AllMusic.com for Artist or Album or Song Title:

ArtistName search:
----------------------------------
"http://www.allmusic.com/cg/amg.dll?p=amg&sql=1:" + Replace(ArtistName, " ", "|")
... example: http://www.allmusic.com/cg/amg.dll?p=am ... das|Priest

AlbumName search:
----------------------------------
"http://www.allmusic.com/cg/amg.dll?p=amg&sql=2:" + Replace(AlbumName, " ", "|")
... example: http://www.allmusic.com/cg/amg.dll?p=am ... tish|Steel

SongTitle search:
----------------------------------
"http://www.allmusic.com/cg/amg.dll?p=amg&sql=3:" + Replace(SongTitle, " ", "|")
... example: http://www.allmusic.com/cg/amg.dll?p=am ... ng|the|Law


NOTE: The "|" is used as a word separator (not "&", not "+" [like Discogs uses], nor any other character).

by Sammy20 » Sun Sep 24, 2006 10:46 am

bump, can anyone help?

by Sammy20 » Wed Sep 20, 2006 10:11 am

The last.fm search in this script isn't working anymore.

Does anyone know the new code to get it working?

edit: ummm I just looked back in the thread, and didn't notice anyone posting the last.fm search code for this script. I wonder which thread I got it from?

by baker » Sun Sep 17, 2006 3:47 pm

Hey, would it be possible to get this script to find an album based on the artist and title? I'm no programmer but if it could simply query the title, sort the result by year and then retrieve the first album released from the song's artist, that would be great.

Thx and nice work on these sripts,
Baker

by Steegy » Sat Apr 29, 2006 9:03 am

Error happened during script execution:
No application is associated with the specified file for this operation.
This might help:
http://www.mediamonkey.com/forum/viewto ... 4837#34837

Cheers
Steegy

Google search vbs proble

by jatsad » Sat Apr 29, 2006 7:26 am

I have tried to run the google search script, as well as the wikipedia,lastfm and allmusic.
In all cases I get the following error.

Error#-2147023241
File "E:\Program Files\MediaMonkey\Scripts\Auto\Google.vbs" Line: 50, Column: 9

When you press the OK button, the following is displayed.

Error happened during script execution:
No application is associated with the specified file for this operation.

The code with associated line numbers is:

37 Sub Google(MenuItem)
38 if SDB.SelectedSongL ist.Count > 0 then
39 Dim Song
40 Set Song = SDB.Se lectedSongList.Item(0)
41 Dim Artist
42 Dim Album
43
44 Artist = "%22" + Replace(Song.ArtistName, " ", "%20") + "%22"
45 Album = "%22" + R eplace(Song.AlbumName, " ", "%20") + "%22"
46
47 Dim WshShell
48 Set WshShell = Cr eateObject("WScript.Shell")
49 if MenuItem.Hint = "Artist" then
50 WshShell.Run(" www.google.com/search?q=" + Artist + "")
51 else
52 WshShell.Run(" www.google.com/search?q=" + Artist + "+" + Album)
53 end if
54 Set WshShell = No thing
55 end if
56 end Sub


Your help is appreciated in advance.

by Steegy » Wed Mar 22, 2006 8:17 pm

how difficult would it be to get the album art and other info from them as well
For people who don't know yet:
A solution exists to tag your files from web resources, using "Web Sources Tagger": http://www.mediamonkey.com/forum/viewto ... 1069#41069
For more information (history, possibilities), please take a look in that thread.

It currently works for Amazon (all sites), All Music Guide (AMG), FreeDB, Discogs, Walmart (covers) and DarkTown (covers).
Other scripts already exist but have to be improved (e.g. iTunes (covers), ArtistDirect and MusicBrainz.)

If you want other sites to be supported, please let us know. Or take a look at the above linked forum page to find information on how to create/edit sources scripts yourself (documentation from Mp3Tag).

Cheers
Steegy

by judas » Wed Mar 15, 2006 11:28 am

this has been requested (me included) many times, but they dont provide an apy and i think is against their licence or something like that...besides that, the script doesnt actually communicates with allmusic...it just sends the search query to a browser.

i dont think this is coming in the near future...some players that USED to allow this sort of thing stopped working since allmusic changed...


judas

by urlwolf » Wed Mar 15, 2006 11:24 am

Now that you seem to communicate with Allmusic all right, how difficult would it be to get the album art and other info from them as well?

by kanski » Wed Mar 15, 2006 6:26 am

2trixmoto:

Code: Select all


Sub OnStartUp
   SDB.UI.AddMenuItemSep SDB.UI.Menu_Pop_TrackList_MoreFrom, -1, -1
   SDB.UI.AddMenuItemSep SDB.UI.Menu_Pop_NP_MoreFrom, -1, -1
   
   Dim MenuItem
   Set MenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Pop_TrackList_MoreFrom, -1, -1)
   MenuItem.Caption = SDB.Localize("Album") + " [allmusic.com]"
   MenuItem.IconIndex = 37
   MenuItem.OnClickFunc = "allmusic"
   MenuItem.UseScript = Script.ScriptPath
   MenuItem.Hint = "Album"
   
   Set MenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Pop_NP_MoreFrom, -1, -1)
   MenuItem.Caption = SDB.Localize("Album") + " [allmusic.com]"
   MenuItem.IconIndex = 37
   MenuItem.OnClickFunc = "allmusic"
   MenuItem.UseScript = Script.ScriptPath
   MenuItem.Hint = "Album"


   Set MenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Pop_TrackList_MoreFrom, -1, -1)
   MenuItem.Caption = SDB.Localize("Artist") + " [allmusic.com]"
   MenuItem.IconIndex = 37
   MenuItem.OnClickFunc = "allmusic"
   MenuItem.UseScript = Script.ScriptPath
   MenuItem.Hint = "Artist"
   
   Set MenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Pop_NP_MoreFrom, -1, -1)
   MenuItem.Caption = SDB.Localize("Artist") + " [allmusic.com]"
   MenuItem.IconIndex = 37
   MenuItem.OnClickFunc = "allmusic"
   MenuItem.UseScript = Script.ScriptPath
   MenuItem.Hint = "Artist"


   Set MenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Pop_TrackList_MoreFrom, -1, -1)
   MenuItem.Caption = SDB.Localize("Artist") + " [Wikipedia.org]"
   MenuItem.IconIndex = 37
   MenuItem.OnClickFunc = "allmusic"
   MenuItem.UseScript = Script.ScriptPath
   MenuItem.Hint = "ArtistWikipedia"
   
   Set MenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Pop_NP_MoreFrom, -1, -1)
   MenuItem.Caption = SDB.Localize("Artist") + " [Wikipedia.org]"
   MenuItem.IconIndex = 37
   MenuItem.OnClickFunc = "allmusic"
   MenuItem.UseScript = Script.ScriptPath
   MenuItem.Hint = "ArtistWikipedia"


   Set MenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Pop_TrackList_MoreFrom, -1, -1)
   MenuItem.Caption = SDB.Localize("Artist") + " [Last.fm]"
   MenuItem.IconIndex = 37
   MenuItem.OnClickFunc = "allmusic"
   MenuItem.UseScript = Script.ScriptPath
   MenuItem.Hint = "ArtistFM"
   
   Set MenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Pop_NP_MoreFrom, -1, -1)
   MenuItem.Caption = SDB.Localize("Artist") + " [Last.fm]"
   MenuItem.IconIndex = 37
   MenuItem.OnClickFunc = "allmusic"
   MenuItem.UseScript = Script.ScriptPath
   MenuItem.Hint = "ArtistFM"
   
 
   Set MenuItem = Nothing
End Sub

Sub allmusic(MenuItem)
   if SDB.SelectedSongList.Count > 0 then
      Dim Song
      Set Song = SDB.SelectedSongList.Item(0)
      Dim Artist
      Dim Album
   
      Artist = Replace(Song.ArtistName, " ", "+")
      Artist = Replace(Artist,"&","%")
      Album = Replace(Song.AlbumName, " ", "+")
      Album = Replace(Album,"&","%")
       
      Dim WshShell
      Set WshShell = CreateObject("WScript.Shell")
      if MenuItem.Hint = "Artist" then
         WshShell.Run("http://www.allmusic.com/cg/amg.dll?P=amg&uid=SEARCH&opt1=1&sql=" + Artist)
      end if 

      if MenuItem.Hint = "ArtistWikipedia" then
         WshShell.Run("http://en.wikipedia.org/wiki/Special:Search?search=" + Artist + "&go=Go")
      end if 
      if MenuItem.Hint = "ArtistFM" then
        WshShell.Run("http://www.last.fm/explore/search.php?q=" + Artist + "&m=artists")
      end if 

      if MenuItem.Hint = "Album" then
         WshShell.Run("http://www.allmusic.com/cg/amg.dll?P=amg&uid=SEARCH&opt1=2&sql=" + Album)
      end if 
    
      Set WshShell = Nothing
   end if
end Sub

Top