Lyricsplugin Search Script
Okay, this is pretty much happening at least once (and more!) on every album. It makes this method pretty much useless.
Does anyone have any idea what needs to be fixed? I'd be happy to edit the script myself if someone just tells me what to paste where.
Does anyone have any idea what needs to be fixed? I'd be happy to edit the script myself if someone just tells me what to paste where.
MM Gold 3.0.3.1183 : Vista HP SP1 (x86) : Zen Stone (2GB)
Zekton: An original MM3 skin by Eyal.
Scripts in Use: Add/Remove PlayStat | Auto Album DJ | AutoRateAccurate | Backup
Case & Leading Zero Fixer | Classification & Genre Changer | Clean Scripts.ini | Clear
Field | Custom Report | Discogs Auto-Tag Web Search | Forget Crossfade | Invert
Selection/Select None | Last 100... | Lyricator | Lyrics to Instrumental | MonkeyRok
MusicBrainz Tagger | My Custom Nodes | Now Playing Art Node | Play History & Stats
Right Click for Reports | Right Click for Scripts | Right Click for Web | Stop After Current
WebNodes
-
- Posts: 1119
- Joined: Mon Apr 09, 2007 12:03 am
- Location: Boulder, Colorado, USA
I am scripting illiterate, but it must be some kind of time out issue.spacefish wrote:Okay, this is pretty much happening at least once (and more!) on every album. It makes this method pretty much useless.
Does anyone have any idea what needs to be fixed? I'd be happy to edit the script myself if someone just tells me what to paste where.
BTW, when I get the error I switch to the next song and then switch back and it tags without problem.
But, yeah that is a PITA also.
D Rock
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...
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...
That doesn't work for me otherwise I'd just deal with it. I can "get lucky" and have it tag after closing the auto-tag window, but usually I need to restart MM for it to start working again. Until it doesn't.drjboulder wrote:I am scripting illiterate, but it must be some kind of time out issue.spacefish wrote:Okay, this is pretty much happening at least once (and more!) on every album. It makes this method pretty much useless.
Does anyone have any idea what needs to be fixed? I'd be happy to edit the script myself if someone just tells me what to paste where.
BTW, when I get the error I switch to the next song and then switch back and it tags without problem.
MM Gold 3.0.3.1183 : Vista HP SP1 (x86) : Zen Stone (2GB)
Zekton: An original MM3 skin by Eyal.
Scripts in Use: Add/Remove PlayStat | Auto Album DJ | AutoRateAccurate | Backup
Case & Leading Zero Fixer | Classification & Genre Changer | Clean Scripts.ini | Clear
Field | Custom Report | Discogs Auto-Tag Web Search | Forget Crossfade | Invert
Selection/Select None | Last 100... | Lyricator | Lyrics to Instrumental | MonkeyRok
MusicBrainz Tagger | My Custom Nodes | Now Playing Art Node | Play History & Stats
Right Click for Reports | Right Click for Scripts | Right Click for Web | Stop After Current
WebNodes
-
- Posts: 23640
- Joined: Wed Aug 09, 2006 10:20 am
- Location: NJ, USA
- Contact:
No, it gets plain (static) lyrics, and I believe only for 1 track at a time (correct me if I'm wrong), using a similar interface as "Auto Tag from Web".MyCsPiTTa wrote:I'm a little confused. Does this do the same as Miilyrics (i.e. search and scroll lyrics) but with the advantage that it can add lyrics to your whole library, not just the playing song? That'd be cool.
MediaMonkey user since 2006
Need help? Got a suggestion? Can't find something?
Please no PMs in reply to a post. Just reply in the thread.
Need help? Got a suggestion? Can't find something?
Please no PMs in reply to a post. Just reply in the thread.
-
- Posts: 1119
- Joined: Mon Apr 09, 2007 12:03 am
- Location: Boulder, Colorado, USA
Exactly, except the interface is not similar - it is one and the same.nohitter151 wrote:No, it gets plain (static) lyrics, and I believe only for 1 track at a time (correct me if I'm wrong), using a similar interface as "Auto Tag from Web".MyCsPiTTa wrote:I'm a little confused. Does this do the same as Miilyrics (i.e. search and scroll lyrics) but with the advantage that it can add lyrics to your whole library, not just the playing song? That'd be cool.
D Rock
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...
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...
Re: error message
I finally found how to fix this problem!!!irshjet35 wrote:nice script although I get an error when trying to get the lyrics, I get an VBS Runtime error #424 object required 'lyrics' line 74 column 25. I can click past it and it works, just annoying
replace the corresponding piece of code with this:
...............
url = "http://www.lyricsplugin.com/winamp03/plugin/?title=" & title & "&artist=" & artist
Browser.Interf.Navigate url
Set Tmr = SDB.CreateTimer(40)
Script.RegisterEvent Tmr, "OnTimer", "WebsiteLoaded"
End If
dim Doc
End Sub
Sub WebsiteLoaded(Timer)
Script.UnregisterEvents Tmr
Set Tmr = Nothing
If Len(Browser.Interf.LocationURL) < 10 Then ' A trick - wait until navigation to the search results page starts
Set Tmr = SDB.CreateTimer(40)
Script.RegisterEvent Tmr, "OnTimer", "WebsiteLoaded"
Exit Sub
End If
If Browser.Interf.ReadyState = 1 Or Browser.Interf.Busy Then
Set Tmr = SDB.CreateTimer(40)
Script.RegisterEvent Tmr, "OnTimer", "WebsiteLoaded"
Exit Sub
End If
Set Doc = Browser.Interf.Document
If IsObject(Doc) Then
Set lyrics = Doc.getElementById("lyrics")
...............
@ Juanitoc
Nicely done! I love this script, but that error was becoming a serious nuisance.
@ Guest
To use the fix described above, open up lyricsplugin.vbs, and locate the section of code that Juanitoc is referencing above. I believe that the line beginning " url =" is line 54. Start from there, and anything that Juanitoc has put in bold needs to be changed in lyricsplugin.vbs. The large section in bold (beginning with "If Len(Browser.Interf.LocationURL)") needs to be added to the code. Just paste it in the appropriate spot. Feel free to PM me if you have any questions.
Justin
Nicely done! I love this script, but that error was becoming a serious nuisance.
@ Guest
To use the fix described above, open up lyricsplugin.vbs, and locate the section of code that Juanitoc is referencing above. I believe that the line beginning " url =" is line 54. Start from there, and anything that Juanitoc has put in bold needs to be changed in lyricsplugin.vbs. The large section in bold (beginning with "If Len(Browser.Interf.LocationURL)") needs to be added to the code. Just paste it in the appropriate spot. Feel free to PM me if you have any questions.
Justin
Thank you, Juanitoc! Seems to be working fine here.
Here ya goVyper wrote:Would someone do an old guy a favor and just repost the whole code with the fix?
Code: Select all
' Lyrics Plugin Search script
'
' This script is a plug-in into MediaMonkey Web Search dialog. You should save it to Scripts folder as
' lyricsplugin.vbs. It has to be in Scripts.ini file, where entries can be as follows:
'
' [SearchAMG]
' FileName=lyricsplugin.vbs
' ProcName=lyricsplugin
' Order=99
' DisplayName=lyricsplugin
' Language=VBScript
' ScriptType=3
' Global
Dim Browser
Dim Tmr
Dim Current
Sub StartSearch(Panel, SearchTerm, SearchArtist, SearchAlbum)
Set Browser = SDB.UI.NewActiveX(Panel, "Shell.Explorer")
Browser.Common.Align = 5
Dim Tracks
Dim Results
Set Tracks = SDB.Tools.WebSearch.NewTracks
Set Results = SDB.NewStringList
For i = 0 to Tracks.Count-1
Results.Add Tracks.item(i).ArtistName & " - " & Tracks.item(i).Title
Next
SDB.Tools.WebSearch.SetSearchResults Results
If Results.Count > 0 Then
SDB.Tools.WebSearch.ResultIndex = 0
End If
End Sub
Sub ShowResult(ResultID)
If (ResultID >= 0) Then
Browser.SetHTMLDocument ""
With SDB.Tools.WebSearch
.ClearTracksData
.TrackChecked(ResultID) = True
Set Track = .NewTracks.Item(ResultID)
End With
With Track
title = .Title
artist = .ArtistName
End With
url = "http://www.lyricsplugin.com/plugin/?title=" & title & "&artist=" & artist
Browser.Interf.Navigate url
Set Tmr = SDB.CreateTimer(40)
Script.RegisterEvent Tmr, "OnTimer", "WebsiteLoaded"
End If
dim Doc
End Sub
Sub WebsiteLoaded(Timer)
Script.UnregisterEvents Tmr
Set Tmr = Nothing
If Len(Browser.Interf.LocationURL) < 10 Then ' A trick - wait until navigation to the search results page starts
Set Tmr = SDB.CreateTimer(40)
Script.RegisterEvent Tmr, "OnTimer", "WebsiteLoaded"
Exit Sub
End If
If Browser.Interf.ReadyState = 1 Or Browser.Interf.Busy Then
Set Tmr = SDB.CreateTimer(40)
Script.RegisterEvent Tmr, "OnTimer", "WebsiteLoaded"
Exit Sub
End If
Set Doc = Browser.Interf.Document
If IsObject(Doc) Then
Set lyrics = Doc.getElementById("lyrics")
If IsObject(lyrics) Then
For i = 0 To SDB.Tools.WebSearch.NewTracks.Count - 1
If SDB.Tools.WebSearch.TrackChecked(i) Then
SDB.Tools.WebSearch.NewTracks.Item(i).Lyrics = lyrics.innerText
End If
Next
SDB.Tools.WebSearch.RefreshViews
End If
End If
End Sub
Sub FinishSearch(Panel)
Browser.Common.DestroyControl
Set Browser = Nothing
End Sub
MM Gold 3.0.3.1183 : Vista HP SP1 (x86) : Zen Stone (2GB)
Zekton: An original MM3 skin by Eyal.
Scripts in Use: Add/Remove PlayStat | Auto Album DJ | AutoRateAccurate | Backup
Case & Leading Zero Fixer | Classification & Genre Changer | Clean Scripts.ini | Clear
Field | Custom Report | Discogs Auto-Tag Web Search | Forget Crossfade | Invert
Selection/Select None | Last 100... | Lyricator | Lyrics to Instrumental | MonkeyRok
MusicBrainz Tagger | My Custom Nodes | Now Playing Art Node | Play History & Stats
Right Click for Reports | Right Click for Scripts | Right Click for Web | Stop After Current
WebNodes
Please please please add the mass tagging option!! this is all this script requires nownynaevelan wrote:When I say automatically, I mean an option to easily save the tracks without having to keep going into a dialog for individual tracks. For instance, if you take a look at Trixmoto's Batch Album Art script, it gives you a list of all the art for all the tracks which you selected, and you get the option of which ones to save and which ones to skip. The majority of the time I am editing tracks in batch format, and an easier way to do this would be great. Especially since I still have over 1000 tracks which I need to find lyrics for.jn wrote:Hm.. I personally dislike everything which runs automatically, as normally that will destroy thingsnynaevelan wrote:As it is, it is nice but it would be nice to have something a little more automated.
Nyn