Page 17 of 33

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Posted: Mon Aug 16, 2010 1:47 pm
by vlatro
Install the original script (available on page one in this thread).
Go to the "mediamonkey/scripts" directory and find Lyricator.js, open in notepad or another plain-text editor.
Select all the text and delete it.
Now look at my post, directly above yours. Select all the code in the code box (there's a SelectALL button so you don't miss anything). Copy and paste it into the lyricator.js file you just opened. Save the document.
Now fire up MediaMonkey and select an album. Go to tools -> Script -> Lyricator. It will scan the files and find the lyrics. When it finishes, just hit "Save" on the bottom of the window. It embeds the lyrics in the ID3 tag, which most players and ipods can read directly. It uses the "Artist" and "Title" fields, so make sure you have that information in the tag before scanning.

As of the time of this post, I'm running the script remotely from work on my home computer. If I get a chance, I'll try and post a complete package. Mind you this is a temporary fix until the original author decides what they want to do, thus there may not be a lot of support for this unofficial version, but it will function in the mean time.

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Posted: Mon Aug 16, 2010 2:00 pm
by SquirrelScript
I've edited the files, and created a new mmip for it as I'm also hosting the php file.
Thanks ripken204, Semmetju, and vlatro for the fix!

Lyricator 1.1.0.022 (unofficial)
Download: *Out Of Date*

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Posted: Mon Aug 16, 2010 2:04 pm
by vlatro
Don't thank me, I added 1 character. Thanks for the installable file. Between the two public soruces, yours and mine, it should reduce a bit of drag on the intermediate severs. Of course the poor guy who runs the actual lyrics site is probably pulling his hair out trying to figure out where dozens of requests per second are coming from, lol.

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Posted: Mon Aug 16, 2010 2:04 pm
by klaus_hh
Thanks to all active skripters! It´s working fine.

K.

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Posted: Mon Aug 16, 2010 2:11 pm
by ripken204
speed is alright for me, if it finds the lyrics i can get like 3-4 done per second, if it doesnt find any (worst case), it can take a second or so.
mine is running on a local server right now.

and for the record i didnt exactly come up with the PHP script, someone else did.
i just modified it to make it work with any server with PHP and added a couple little modifications.

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Posted: Mon Aug 16, 2010 3:24 pm
by SDJeff
Thanks guys!

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Posted: Mon Aug 16, 2010 5:10 pm
by Semmetju
Just one more thing.
I suggest to replace the str_replace part in the php with the urlencode function.
Just to be sure there aren't any illegal characters left.
I'll submit the script right away...

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Posted: Mon Aug 16, 2010 5:11 pm
by Semmetju
Here you go:

Code: Select all

<?php
   $artist = urlencode($_GET["artist"]);
   $title = urlencode($_GET["title"]);
   
   $html = file_get_contents("http://www.lyricsplugin.com/winamp03/plugin/?title=$title&artist=$artist", true);
     
   $arr1 = explode("javascript:getContent(",$html);
   $arr2 = explode(", ",$arr1[1]);
   $time = str_replace("'","",$arr2[2]);
   $arr3 = explode(")",$arr2[3]);
   $check = str_replace("'","",$arr3[0]);
   
   echo $lyrics =  file_get_contents("http://www.lyricsplugin.com/winamp03/plugin/content.php?artist=$artist&title=$title&time=$time&check=$check", true, stream_context_create(array("http"=>array("header"=>"Referer: http://www.lyricsplugin.com/winamp03/plugin/?title=$title&artist=$artist"))));
?>

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Posted: Mon Aug 16, 2010 5:38 pm
by ripken204
thats the function i was looking for! i just couldnt think of it at the time, thanks.

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Posted: Mon Aug 16, 2010 7:35 pm
by SquirrelScript
Ive also added a little bit at the start to (to stop some errors being displayed)

Code: Select all

<?php
if ($_GET["artist"] && $_GET["title"]) {
   $artist = urlencode($_GET["artist"]);
   $title = urlencode($_GET["title"]);
   
   $html = file_get_contents("http://www.lyricsplugin.com/winamp03/plugin/?title=$title&artist=$artist", true);
     
   $arr1 = explode("javascript:getContent(",$html);
   $arr2 = explode(", ",$arr1[1]);
   $time = str_replace("'","",$arr2[2]);
   $arr3 = explode(")",$arr2[3]);
   $check = str_replace("'","",$arr3[0]);
   
   echo $lyrics =  file_get_contents("http://www.lyricsplugin.com/winamp03/plugin/content.php?artist=$artist&title=$title&time=$time&check=$check", true, stream_context_create(array("http"=>array("header"=>"Referer: http://www.lyricsplugin.com/winamp03/plugin/?title=$title&artist=$artist"))));
}
?>

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Posted: Tue Aug 17, 2010 8:14 am
by Vyper
Does this - Lyricator 1.1.0.022 - include the above changes?

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Posted: Tue Aug 17, 2010 8:20 am
by Semmetju
Vyper wrote:Does this - Lyricator 1.1.0.022 - include the above changes?
You don't have to worry about this, unless you're hosting the php yourself :wink:

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Posted: Tue Aug 17, 2010 12:08 pm
by Vyper
Ah, okay, thanks. :D

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Posted: Tue Aug 17, 2010 10:38 pm
by rrfpacker
A great big thank you to everyone who worked on this and got it up and running again. I really missed this one.

Now, if I could just find a site that has lyrics to more 1960's albums and Christian Rock lyrics I would be set.

Good job everyone.

Re: Lyricator - Batch Lyrics Updater v1.00 [MM3]

Posted: Tue Aug 17, 2010 11:55 pm
by Al4MM
Amazing how many guys rallied to sort this one out. Thanks to all of you!